Hi all,
Server security is very important when we run important applications or websites on servers. As a Linux systems administrator enhancing security or finding intruders, hackers etc and block them from taking or destroying our data is inevitable.
Security features can be added, there are many applications, tools for this which can alert us when something suspicious happens, at the same time by spending some little amount of time, we can manually check something and can find attacks, security issues etc with the server.
let’s check some simple methods we can probably use to find the same on a Linux server with the help of lsof command:
Trace malicious programs on server using lsof:
How to find which processes have highest number of opened files:lsof | awk ‘{printf(“%s (%s)\n”, $1, $2)}’ |sort -n|uniq -c|sort -n|tail
The above command will give you the number of opened files for each processes and list 10 processes with highest number of connections. You can append “-20” at the end of the above command if you want to list 20 processes with highest number of opened files.
Locate unused open ports on your server:
– Run netstat command to check if there are any suspicious ports:
netstat -an
The output of the above command will look like:udp 0 0 0.0.0.0:41713 0.0.0.0:*
udp 0 0 0.0.0.0:55566 0.0.0.0:*
udp 0 0 0.0.0.0:7500 0.0.0.0:*
udp 0 0 0.0.0.0:68 0.0.0.0:*
In the above example, say if you found an unknown port 41713, run the following command to locate the program using that port.
lsof -i udp:41713
Locate if any files are opened by a program which doesn’t exist in file system:
lsof | grep deleted
The output of the above command will contain some opened files used by processes and the files will not be present in the file system. You can manually kill/terminate these processes to free up the memory, otherwise the memory allotted for these files wont be freed.
That’s all, check another methods also, thanks for reading! Share and help if you felt this helpful!
Thank you!




**cellufend**
cellufend is a natural supplement developed to support balanced blood sugar levels through a blend of botanical extracts and essential nutrients.
**neurogenica**
neurogenica is a dietary supplement formulated to support nerve health and ease discomfort associated with neuropathy.
**hepato burn**
hepato burn is a potent, plant-based formula created to promote optimal liver performance and naturally stimulate fat-burning mechanisms.
**hepato burn**
hepato burn is a premium nutritional formula designed to enhance liver function, boost metabolism, and support natural fat breakdown.
**potentstream**
potentstream is engineered to promote prostate well-being by counteracting the residue that can build up from hard-water minerals within the urinary tract.
**prostabliss**
prostabliss is a carefully developed dietary formula aimed at nurturing prostate vitality and improving urinary comfort.
**pineal xt**
pinealxt is a revolutionary supplement that promotes proper pineal gland function and energy levels to support healthy body function.
**energeia**
energeia is the first and only recipe that targets the root cause of stubborn belly fat and Deadly visceral fat.
**breathe**
breathe is a plant-powered tincture crafted to promote lung performance and enhance your breathing quality.
**yu sleep**
yusleep is a gentle, nano-enhanced nightly blend designed to help you drift off quickly, stay asleep longer, and wake feeling clear.
**zencortex**
zencortex contains only the natural ingredients that are effective in supporting incredible hearing naturally.
**wildgut**
wildgutis a precision-crafted nutritional blend designed to nurture your dog’s digestive tract.
**sleep lean**
sleeplean is a US-trusted, naturally focused nighttime support formula that helps your body burn fat while you rest.
**nitric boost**
nitric boost is a dietary formula crafted to enhance vitality and promote overall well-being.
**synaptigen**
synaptigen is a next-generation brain support supplement that blends natural nootropics, adaptogens
**glucore**
glucore is a nutritional supplement that is given to patients daily to assist in maintaining healthy blood sugar and metabolic rates.
**prodentim**
prodentim an advanced probiotic formulation designed to support exceptional oral hygiene while fortifying teeth and gums.
**vittaburn**
vittaburn is a liquid dietary supplement formulated to support healthy weight reduction by increasing metabolic rate, reducing hunger, and promoting fat loss.
**gl pro**
gl pro is a natural dietary supplement designed to promote balanced blood sugar levels and curb sugar cravings.
**mind vault**
mind vault is a premium cognitive support formula created for adults 45+. It’s thoughtfully designed to help maintain clear thinking
thao túng lưu lượng truy cập
can you get cheap clomiphene online how to get cheap clomid buy cheap clomid without dr prescription order clomid for sale where can i get cheap clomiphene without dr prescription where can i buy clomiphene pill order clomiphene online