Thursday, 24 March 2011

NERD Alert (hack checklist)

Look For Signs That Your System May Have Been Compromised 
 

  1. Examine log files for connections from unusual locations or other unusual activity. For example, look at your 'last' log, process accounting, all logs created by syslog, and other security logs. If your firewall or router writes logs to a different location than the compromised system, remember to check these logs also. Note that this is not foolproof unless you log to append-only media; many intruders edit log files in an attempt to hide their activity.
  2. Look for setuid and setgid files (especially setuid root files) everywhere on your system. Intruders often leave setuid copies of /bin/sh or /bin/time around to allow them root access at a late time. The UNIX find(1) program can be used to hunt for setuid and/or setgid files. For example, you can use the following commands to find setuid root files and setgid kmem files on the entire file system:
            find / -user root -perm -4000 -print
            find / -group kmem -perm -2000 -print
    Note that the above examples search the entire directory tree, including NFS/AFS mounted file systems. Some find(1) commands support an "-xdev" option to avoid searching those hierarchies. For example:
            find / -user root -perm -4000 -print -xdev
    Another way to search for setuid files is to use the ncheck(8) command on each disk partition. For example, use the following command to search for setuid files and special devices on the disk partition /dev/rsd0g:
            ncheck -s /dev/rsd0g
  3. Check your system binaries to make sure that they haven't been altered. We've seen intruders change programs on UNIX systems such as login, su, telnet, netstat, ifconfig, ls, find, du, df, libc, sync, any binaries referenced in /etc/inetd.conf, and other critical network and system programs and shared object libraries. Compare the versions on your systems with known good copies, such as those from your initial installation media. Be careful of trusting backups; your backups could also contain Trojan horses. Trojan horse programs may produce the same standard checksum and timestamp as the legitimate version. Because of this, the standard UNIX sum(1) command and the timestamps associated with the programs are not sufficient to determine whether the programs have been replaced. The use of cmp(1), MD5, Tripwire, and other cryptographic checksum tools is sufficient to detect these Trojan horse programs, provided the checksum tools themselves are kept secure and are not available for modification by the intruder. Additionally, you may want to consider using a tool (PGP, for example) to "sign" the output generated by MD5 or Tripwire, for future reference.
  4. Check your systems for unauthorized use of a network monitoring program, commonly called a sniffer or packet sniffer. Intruders may use a sniffer to capture user account and password information.
  5. Examine all the files that are run by 'cron' and 'at.' We've seen intruders leave back doors in files run from 'cron' or submitted to 'at.' These techniques can let an intruder back on the system (even after you believe you had addressed the original compromise). Also, verify that all files/programs referenced (directly or indirectly) by the 'cron' and 'at' jobs, and the job files themselves, are not world-writable.
  6. Check for unauthorized services. Inspect /etc/inetd.conf for unauthorized additions or changes. In particular, search for entries that execute a shell program (for example, /bin/sh or /bin/csh) and check all programs that are specified in /etc/inetd.conf to verify that they are correct and haven't been replaced by Trojan horse programs. Also check for legitimate services that you have commented out in your /etc/inetd.conf. Intruders may turn on a service that you previously thought you had turned off, or replace the inetd program with a Trojan horse program.
  7. Examine the /etc/passwd file on the system and check for modifications to that file. In particular, look for the unauthorized creation of new accounts, accounts with no passwords, or UID changes (especially UID 0) to existing accounts.
  8. Check your system and network configuration files for unauthorized entries. In particular, look for '+' (plus sign) entries and inappropriate non-local host names in /etc/hosts.equiv, /etc/hosts.lpd, and in all .rhosts files (especially root, uucp, ftp, and other system accounts) on the system. These files should not be world-writable. Furthermore, confirm that these files existed prior to any intrusion and were not created by the intruder.
  9. Look everywhere on the system for unusual or hidden files (files that start with a period and are normally not shown by 'ls'), as these can be used to hide tools and information (password cracking programs, password files from other systems, etc.). A common technique on UNIX systems is to put a hidden directory in a user's account with an unusual name, something like '...' or '.. ' (dot dot space) or '..^G' (dot dot control-G). Again, the find(1) program can be used to look for hidden files, for example:
            find / -name ".. " -print -xdev
    
            find / -name ".*" -print -xdev | cat -v
    Also, files with names such as '.xx' and '.mail' have been used (that is, files that might appear to be normal).
  10. Examine all machines on the local network when searching for signs of intrusion. Most of the time, if one host has been compromised, others on the network have been, too. This is especially true for networks where NIS is running or where hosts trust each other through the use of .rhosts files and/or /etc/hosts.equiv files. Also, check hosts for which your users share .rhosts access.

Yamaha Off-Road Experience Vs Trailworld home counties tour

Firstly this is my opinion from my experience at both but you can go and see for yourself,

Trailworld: http://www.trailworld.co.uk/homecountiestour.html
Yamaha Offroad: http://www.yamaha-offroad-experience.co.uk

Bikes: YOR: Yamaha WR250's, 450's and Honda 230's that no one used
           TW:  2xCCM230's, the rest Honda 230's

Signing on and briefing: The YOR briefing was fun, informative and all about the day, bikes and what to do / not to do when out and about.
 The TW focused more on "dont f**k our bikes up or you'll pay" type attitude and to be honest when it started going down this road I switched off and felt a bit apprehensive about the day and that there were bound to be additional costs at the end.

The bikes at YOR were cleaner, better maintained and the TW bikes felt abused with a few bikes popping out of 2nd gear, one bike failing due to a clogged fuel pipe and tyres that were on their last outing so bikes definately better at YOR.

Day and terrain: (YOR)The Welsh mountains were fantastic with no on-road work just excellent technical bits with the odd forrest access road, the instructors were professional racers, very good and personable and the day as a whole was perfect!
 (TW) I would never expect that the green lanes would start where they do, randomly at the back of housing estates, turn left off the carriage way etc was bizarre (in a good way), an enjoyable day but seemed (may be normal) that there was an equal mix of road and offroad work but I suppose thats what you get living in the south, highlights were the bombhole? and the two water crossings.

in Summary, both were enjoyable, the Yamaha Off Road experience is better run, better prepared with better bikes and better terrain and well worth the trip;
 Trailworld make the best out of what they have, showed me what I could expect when I get a bike living in London and was good to get another fix, ride a different bike off road and join another internet forum.

next is getting my own bike but if I was to chose when paying my own money (TW was a gift) then it would be the Yamaha day no doubt about it.

long time no post

Well, lots has happened since the last post;
 I've worked in Kent for ages, driving a effing piece of s**t Renault Megane automatic for 3+ hours a day, managed to sell aforementioned car and now looking for something decent (260bhp Audi TT convertible?)

 The fireblade spat its spark plug out when down in Sussex chasing Al on his Busa, then "fixed" (for 5 minutes) by now an ex-mate and is now getting a new head to fix it once and for all.

In the mean-time, I purchased a Yamaha Diversion 600 to get me round and had to replace the fuel pump and tap for it to go anywhere without several calls and hours by the side of the road waiting for different AA dudes to come and get me (log story)


  Have been green laneing again at a place called trail world (will review and compare next time) and have secretly smuggled in a host of related clothing into the flat ready for when I sell the Divvy and buy one of my own :) - brilliant fun!

 After a year, then monkies from a company called CET bodging the spare room, it finally looks like its going to be sorted, the wifey is now working in the family business and really enjoying it compared to the gallery and the recruitment agency.

 The worst thing though has been the two ectopic pregnancies which has been devastating, especially when you see so many chavs smoking, drinking and taking drugs then popping out more chavs with no problems

I got my current 7 week contract via www.peopleperhour.com which was a lot more professional than the usual agency monkies and I am securing a network with a largely opensource solution, I should be done at the end of next week then off on holiday to the Hilton in Egypt;

anyway, the sun is out and I have to look like I'm working

...oh yeah and I cycled 90 miles Oxford to Cambridge! and passed my Prince 2 practitioner exams (the old brain can still boogie!)

Thursday, 29 July 2010

Tuesday, 20 July 2010

Domain names and gazillions of pounds?

just tried to reserve www.glaxosmithklein.co

via these guys


so if you dont see me it means I've made gazillions of pounds and am currently hoofing accross Europe in a Lambo :)

bangernomics and Thorpe Park

just ploughed a £170 into the Renault Megane crap heap to get it through its MOT and still the window is knackered but as yet any thieves are taking pity and not nicking anything from it :D

Thorpe Park on Sunday was awesome and the SAW ride and maze were worth the visit alone, had a brilliant time.

then a 25 mile bicycle ride along the grand union canal to Greenford station yesterday - god bless working from home :) only crapper is having to be in next Monday as the US boss man is around and I had intended to 'work from home in Devon'  bah!

we're just starting to make plans for a holiday finally... and the folks cat kicked the bucket after 15 years - RIP Bruce.

Thursday, 8 July 2010

bored

I'm bored at work
I'm bored with the future
I'm bored and want to go on holiday
I'm bored with having to work for a million years, and the retirement age going up with our coalition government
I'm bored with working hard off and getting penalised for it
I'm bored with people
I'm bored with trying when others don't
I'm bored with people who are empty behind the eyes
I'm bored with wasting my life at a desk
I'm bored with wasting 5 / 7 days so I can see the same people and do the same stuff all the time
I'm bored with saving
I'm bored with raising finances over the long term to be flushed by bigger versions of what I have now
I'm bored with coming to work, drinking coffee, smoking fags, not talking to the rude prick in the corner
looking at

www.pistonheads.com
www.therevcounter.com
www.londonbikers.com
www.ukbusinessforums.com
www.lifehacker.com

reading the newspaper in the canteen, cycling home and watching videos.

I guess after travelling and experiencing brilliant things every day for a year, sitting at a desk rotting away until I'm too old and fucked to do anything is a bit depressing

July Update

So I've been married for over 7 months and things are brilliant, we have had the bathroom renovated (which Juliet has managed) and the result is excellent

we used these guys

http://www.diliset.co.uk/

and I cant recommend them enough but, on the other hand, I think that my focal point for Nottinghill housing is the biggest waste of public sector space I have ever had to come in contact with and our upstairs neighbours need neutering to prevent our gene pool from growing the number of village idiots; but ho-hum, my Midlands based buddy has crawled back under his rock after sending a summons to the wrong place.

Tuesday, 8 June 2010

London to Brighton and cycling update

Well, the London to Brighton bike ride has come and gone with me raising a not too inconsiderable £460! and doing it in 4hrs which I was more than happy about and the fact that I managed to cycle up Ditchling beacon near the end

the only downer was a 48 year old guy dieing at the foot of Ditchling beacon (massive 1:10 hill near the end)

http://news.bbc.co.uk/1/hi/england/10362762.stm

I had to wait for half an hour for Iain 10 miles from the start and then on top of that finished over an hour ahead of him :) I did explain that my diet of beer and fags was infact carb-loading and lung conditioning.

I really enjoyed being out there on the bike and the exercise and have cycled to Juliet's parents since, have been keeping up the cycling to work but did have to take the bike back to Halfords for repairs as the rear gears (don't know the real names of the bits yet) snapped off and really missed it for those few days and used the Fireblade instead (which I have been neglecting)

I have greater plans of more bike rides and have been looking at the Dunwich Dynamo which is 120 miles through the night and I've been looking at sites such as www.bikeradar.com and find myself looking at
road bikes as an upgrade to my Carerra Subway bike



...but it serves me well for what I need it for but like everything else "lates and greatest" is on the list; as is a wireless bicycle computer.