The Mac Observer

Secrets of Internet Forensics, Part I

May 19th, 2009 at 4:00 PM - How-To by John Martellaro

Have you ever wondered how network security professionals sleuth on the Internet? Many of their tools are highly specialized and have special sauce, but there things that you can do right on your Mac to do some sleuthing on your own, especially if you think you've been the victim of an Internet attack. This is the first in a series of articles.

The first thing to know is that the domain names we use every day are just human friendly, memorable names for Internet addresses that use the Internet Protocol (IP). For example, we tell our Web browser to got to Filemaker.com because that's easy to remember. However, the Mac has to convert that to an IP address before it's usable.

IP addresses are called "dotted quads" and are of the form x.y.z.t. I won't go into too much detail there except to say that, in the case of Filemaker.com, their IP address is 17.112.152.73. That's easy to get by sending out what's called a "ping." Think of it as a short, packet of data sent out, analogous to a sonar ping, that returns some information.

You can get that information easily on a Mac with the Network Utility found in /Applications/Utilities. Just launch it, select the Ping tab, and enter the domain of Web host of interest. Note that often, for security or to reduce system loading, many sites disable ping, but often the IP address is still returned.

Network Utility.

/Applications/Utilities/Network Utility.app

What's interesting is that IP addresses are generally assigned by country, and there are databases of IP addresses versus geolocation. That's one way your iPhone knows how to locate you.

Suppose one of your log files suggests some malicious activity from a source called "thebadguys.com" and you want to find out more. There are several ways to track them down.

First you could use the same Network Utility in the "Whois" tab to collect some information about their domain registration. Many malicious domain holders will try to minimize their public information, but anyone who registers a domain has to supply some minimal data. In our example, the Mac's Network Utility doesn't supply a lot of interesting information, so it's better to to use the command-line in the Terminal app. It's also in the Utilities directory.

No need to be concerned here. You won't hurt your computer. Just launch the Terminal app and type in, for example:

> whois filemaker.com

 

Terminal

/Applications/Utilities/Terminal.app (Customized look)

 

Just hit CMD-Q when you're done, just like any other Mac app. Whois is a standard Internet utility that looks up domain registration data.  

Now we may know some things we didn't know before. If it was hard to find the phone number on the Website, there it is in Whois. We even have a street address and an e-mail for admin and technical contacts. Of course, in this example, all that information about Filemaker is public. However, the site you're investigating might not be so forthcoming on their Website.

What's interesting about IP addresses is that the highest level domains are generally assigned by country. There is a database of IP's vs. cities, in fact, and you have to look around to find a conversion site. For example, you were working with the IP address of, say, 194.145.236.53, you could go to MelissaData.com to look up the city and the corresponding ISP. That IP turns out to be in Berlin, Germany.

 

IP to City

Converting IP Address to a City and ISP

Finally, a word of caution here. All this information is public, but Internet security is a high priority for everyone. As a result, the Internet has changed a lot since its early design, and security people are more alert than ever to probes like these. So it's a good idea to use these techniques with sobriety, caution, and care, only for research or your own legitimate forensic purposes.

  • Related Entries
  • Email This
  • Tweet This
  • John Martellaro on Twitter

1 Observer Comment

   Quote    computer to all said on July 31st, 2009 at 6:55 PM:

you are right

Page 1 of 1 pages
Login. Need an account? Register here.



Auto-login on future visits

Show my name in the online users list

Forgot your password?


Commenting is not available in this section entry.
 

Recent Headlines - Updated November 8th

Sun, 11:59 AM
Mac Geek Gab Podcast - MGG 226: Magic Mouse, Apple Battery Secrets, Q&A
Sat, 7:58 PM
News - Apple TV 3.0.1 Update Fixes Missing Content Bug
Fri, 7:45 PM
Rumor - Taiwan Leak Shows Verizon UTMS/CDMA iPhone for Q3 2010
6:40 PM
News - iPhone Moves Into RadioShack
6:30 PM
News - Apple to Open Stunning Paris Apple Store in Le Louvre on Saturday
5:43 PM
Free on iTunes - Dictionary, Dictionary, Dictionary, And More
4:09 PM
John Martellaro's Blog - Particle Debris (week ending 11/6) Failure IS an Option
3:32 PM
Games - The Latest App Store Games: Gravity Sling, RocketBird, Ground Effect, Checkers!
2:25 PM
Games - Star Soccer 2010 for Mac Puts Gamers in Role of Up-and-Coming Player
2:15 PM
How-To - The Mysteries of Rosetta Housekeeping
1:33 PM
News - iPhone Game Developer Sued for Collecting User’s Cell Numbers
1:17 PM
Games - Warhammer Online Expands Trial Play Option
 

The Mac Observer Reader Specials

  • TypeStyler For Mac OS X is Now Shipping! Download The Free Fully Functional 60 Day Tryout at www.typestyler.com
  • RamJet Memory: Mac Pro 8-core 8GB Kit $199.99, 4GB Kits $109.99! Sale on MacBook and MacBook Pro 8GB kits $549.99! New MacBook DDR3 2GB for $49.99. iMac and Mac mini 4GB Kits for $79.99! 1TB SATA Hard Drives for $109.99! Click here
  • OWC: Plug & Play Hardware RAID up to 8.0TB. High Performance, Data Redundant Solutions. FireWire 800, FireWire 400, USB2, or eSATA. Hot Swappable Bays, Data Rates over 200MB/s. Click here
  • Poker Mac If you're using a Mac, then you've gotta check out Full Tilt Poker for Mac. This Full Tilt Poker bonus code does the unthinkable, it actually rewards!
  • For the latest Apple products use Ciao, a price comparison website, to find laptops like MacBook Air. Then find the best prices on MP3 players and use our comparison tool to evaluate mobile phones like the Apple iPhone.

  • Laptop Hardware Provided by TechRestore - Overnight Mac & iPod Repairs.
  • Buy Stuff, Support TMO!
  • __________
  • Macworld Expo 2010 Hotel Deal
  • TMO on Twitter!

Apple Stock Quote

  • AAPL: $194.34. Change: +0.3099.
  • (Prices delayed up to 20 minutes.)
  • Discuss in our Apple Finance Board

Hot Topics

TMO Express

Join the TMO Express Daily Newsletter to get the latest Mac headlines in your e-mail every weekday. Find out more!

Top Deals From DealBrothers.com

Recent Features