Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I was.... hacked?...
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Mon Dec 29, 2008 6:59 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Perhaps its worth tempering the paranoia by making it clear that security is like the layers of an onion.
They have to break each layer in turn.

The idea is to make it clear to an attacker that there are easier targets out there and they should try one of those instead.


exactly - it's like building up your digital fortress

some time ago I posted a link to a rather useful guide - I think you might find it useful, too:

https://forums.gentoo.org/viewtopic-t-647327-highlight-.html
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
defenderBG
l33t
l33t


Joined: 20 Jun 2006
Posts: 817

PostPosted: Wed Dec 31, 2008 3:15 am    Post subject: Reply with quote

Hell-Razor wrote:
How could they get a partial ls of my /home/ files without fully being into my machine?

smb/ftp?

my security related knowledge is getting rusty... there were those programs, that would checksum every file and check every few hours if the checksum is still valid. pretty effective for /etc, /bin... etc what was their name?
Back to top
View user's profile Send private message
merky1
n00b
n00b


Joined: 22 Apr 2003
Posts: 51

PostPosted: Wed Dec 31, 2008 5:42 am    Post subject: Reply with quote

I was thinking more along the lines of a P2P application being intercepted by the ISP.
_________________
ooo000 WoooHooo 000ooo
Back to top
View user's profile Send private message
defenderBG
l33t
l33t


Joined: 20 Jun 2006
Posts: 817

PostPosted: Wed Dec 31, 2008 9:49 am    Post subject: Reply with quote

most torrent clients nowodays have a cryptographic extension. you can force them to allow only encrypted transfer. for irc (xdcc is really good) I dont know if there is a way to encrypt the transfer.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Fri Jan 02, 2009 2:10 pm    Post subject: Reply with quote

If I might make another suggestion

AIDE is your friend

if you use SSH (which seems you dont, but), something like fail2ban or denyhosts is a must, as well disable keyboard-interactive auth

hardened install with very finely-tuned grsec policies is needed as well

I think everyone else has covered most of what I had.

hrmm...trying to think of what else, my box was marginally compromised a while back, and as I was admittedly lazy before - such an occurrence changed me from flippant to paranoid. Spent a good 3 weeks researching before bringing my box back online.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54810
Location: 56N 3W

PostPosted: Fri Jan 02, 2009 2:27 pm    Post subject: Reply with quote

cach0rr0,

Marginally compromised ?
Thats like being a little bit pregnant.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Fri Jan 02, 2009 2:40 pm    Post subject: Reply with quote

NeddySeagoon wrote:
cach0rr0,

Marginally compromised ?
Thats like being a little bit pregnant.


ha...true enough

basically, someone had managed to upload a file (index.html) into DocumentRoot on one of my vhosts (I blame wordpress)
Which of course took precedence over index.php, so i couldnt figure out why on earth my site wouldn't show - then found that

In theory damage should have been mitigated to that one vhost

It wasn't entirely clearly to me when the upload occurred, so rather than trust I'd fixed the problem....I just backed up, blew everything away, and actually put in the effort to do things right the second time around.

I say "marginally" because to this day I'm still fairly confident the extent of damage was that one vhost - but as visits to that site were so infrquent, and i rotate logs daily, I didn't have heaps of data to use to confirm - and of course, no AIDE, so I couldn't see what else might have been tinkered with. I would say I overreacted were sec not something I take exceptionally seriously

EDIT: I'm also still fairly convinced, given that it's wordpress, it was classic SQL injection with dumpfile used to chunk the rogue index.html into DocumentRoot. Everything else being fairly sanely configured, I probably could have just scrapped that vhost and its DB, and its DB user, and been fairly safe - but I ain't trustin' it. Being hacked makes you feel far too violated - cue the innuendo
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54810
Location: 56N 3W

PostPosted: Fri Jan 02, 2009 2:45 pm    Post subject: Reply with quote

cach0rr0,

You backed up after the compromise?
You could have saved and restored a rootkit.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
madumlao
n00b
n00b


Joined: 02 Jan 2009
Posts: 1

PostPosted: Fri Jan 02, 2009 3:32 pm    Post subject: hidefirstroute part of openrc net.* scripts Reply with quote

http://roy.marples.name/projects/openrc/browser/trunk/init.d/net.lo.in?rev=1384

darn it! you guys had me worried.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Fri Jan 02, 2009 3:38 pm    Post subject: Reply with quote

NeddySeagoon wrote:
cach0rr0,

You backed up after the compromise?
You could have saved and restored a rootkit.


Selectively backed up.
Didn't back up the entire fs, just a few choice bits of media (/video and /music, specifically) and what have you - the backup was done booted into a LiveUSB env, as at that point I (understandably) no longer trusted my kernel.

Booted to LiveUSB, copied choice bits off to external drive, wiped the system, rebuilt system (this time hardened sources/profile/etc), mounted /external, copied a few pieces over. NB chkrootkit/rkhunter all came up clean running from liveusb env

Not too worried about that part....by that point I was actually paying attention - the compromise and resultant necessary "overreaction" was purely a result of my own lazy behaviour. Had I done things right the first time, I'd have been able to see just how far they'd gotten, and known whether or not a wipe was necessary.

It was really a "come to jesus" moment.
As well a number of friends pointing, laughing, and making me realize the error of my apathetic ways

Quote:

(14:52:03) strerror: check your aide logs, you do have aide installed and running RIGHT?
(14:52:12) meat: nope ;x
(14:52:15) strerror: muppet
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum