LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-03-2009, 02:40 PM   #16
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600

Quote:
Originally Posted by marciano View Post
Yes, it is still alive.
Good. Might come in handy to check back things.


Quote:
Originally Posted by marciano View Post
BTW another user (I only have less than 10!) got a problem I think someone took his password from his infected computer. index files have been replaced by others with slight differences
It may be a local password but it may be something else. Did this occur on the old or the new server? Did you scan the full contents of his account?


Quote:
Originally Posted by marciano View Post
I still have to read more carefully your advices, some of them I am already performed.
Can you tell me exactly what measures you took to enhance security of the machine since this thread?


Quote:
Originally Posted by marciano View Post
I need some help on the other post about samhain
I have not seen any questions in the other thread.
 
Old 07-03-2009, 09:58 PM   #17
marciano
Member
 
Registered: Oct 2005
Location: Uruguay
Distribution: CentOS 6.6 Ubuntu 12.4 MacOS 10.9
Posts: 121

Original Poster
Rep: Reputation: 17
Hello unSpawn.

Quote:
It may be a local password but it may be something else. Did this occur on the old or the new server? Did you scan the full contents of his account?
Well I did performed find /home/user -print0 | xargs -0 file | tee /tmp/user.file and I checked for non coincidences
How can I realize if an html file contains such dirty links?
What about any other scripts like perl ones that contain spammers execution?
You know that I live in a country where many people use unregistered software, Windows, antiAlls. So, it is not strange that 'web designers' may catch some malware to get their private data.
Anyway I have to rule out any other possibility.
Quote:
Can you tell me exactly what measures you took to enhance security of the machine since this thread?
All user's passwords have been changed.
I checked some implementation of verification data within forms, query strings and php mysql handling.
You asked my about Java and php image verification. The Java one is a third-party I don't know how it checks jpgs integrity, but after that I use some ImageMagick tools in case they cannot be performed then the uploaded file would be removed.
Do you have a harmless file simulating an image one for debugging (in my old server!)?
I use phpBB3 and MyBB forum apps. They are up-to date.
I am also reading about samhain. Not yet installed, I have to check new server and compare several settings among the servers.
I only have a few days to release the old server.

As for the backup system, I use a cron rsync to backup from remote to a local computer. Then I use a cron lftp to copy all backup to a LAN HD (10 days rotation).
I believe rsync does not support incremental backups.
I've read about Amanda or something like that to perform backups. (I've just seen here a google advertisement about Zmanda!)
What do you suggest?
Thank you

Last edited by marciano; 07-03-2009 at 10:07 PM.
 
Old 07-04-2009, 06:06 AM   #18
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by marciano View Post
Well I did performed find /home/user -print0 | xargs -0 file | tee /tmp/user.file and I checked for non coincidences How can I realize if an html file contains such dirty links? What about any other scripts like perl ones that contain spammers execution?
Running "find|xargs file" shows you what type a file is. If you want to search for say a javascript string you could run a recursive grep on the directory. If you provide PHP then you should not only check .html(l) files but also includes. Running 'file' should show if a script on the filesystem is a Perl script. Else catching them running could be done by logging and watching user processes or collateral like a surge in returned mailer daemon errors.


Quote:
Originally Posted by marciano View Post
All user's passwords have been changed. I checked some implementation of verification data within forms, query strings and php mysql handling.
I think that on your new server you should take care to configure and harden it well before allowing users onto it. Hardening afterwards is not futile but less secure. If you have questions about and would like help with hardening please search this forums threads and check out the LQ FAQ: Security references (or the newer cleaned up version at http://rkhunter.wiki.sourceforge.net/SECREF).


Quote:
Originally Posted by marciano View Post
Do you have a harmless file simulating an image one for debugging (in my old server!)?
No, but you could easily 'cat somePHPfile.php >> image.jpg'.


Quote:
Originally Posted by marciano View Post
I use phpBB3 and MyBB forum apps. They are up-to date.I am also reading about samhain. Not yet installed, I have to check new server and compare several settings among the servers. I only have a few days to release the old server.
A complete backup of the old server and proper hardening of the new server should be your two most important tasks. The backup makes sure you can research things (configuration, user files, system logs) and hardening makes certain you keep this from happening again. It will also help if you have another physical or virtual machine on which to mimick your production setup. That way you can reconfigure, test, compile or install things before moving to production.


Quote:
Originally Posted by marciano View Post
As for the backup system, I use a cron rsync to backup from remote to a local computer. Then I use a cron lftp to copy all backup to a LAN HD (10 days rotation). I believe rsync does not support incremental backups.
What you could do is create a cronjob that makes a full backup tarball of your rsync destination on one day, then run tar --listed-incremental for n days afterwards between "full" runs. Storing the full backups off-site and in a safe (place) ensures you always have a copy to fall back on, creates a history of changes and incrementals make it easy to restore fast.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration