Slashdot Mirror


Known-Good MD5 Database

bgp4 writes "Have you ever examined a system you thought was broken into but you weren't sure? If only you had run an integrity verification program like osiris or Tripwire first you could have figured out what programs had been changed. In an effort to help out in the instances when you can't answer the question "what was this like before?" we've constructed a searchable database of MD5 and SHA-1 hashes for files in many standard operating systems. You can search using the filename or the checksum and see if you have a trojaned binary or an overactive imagination. Currently at knowngoods.org we have many FreeBSD, OS X, Linux, and Solaris installations checksummed and cataloged. If you have other programs or distributions you would like to see in the database, please let us know."

307 comments

  1. Yes, in fact, I have! by Anonymous Coward · · Score: 4, Funny
    Have you ever examined a system you thought was broken into but you weren't sure?
    Just about every time I've broken into a system! :)
    1. Re:Yes, in fact, I have! by Anonymous Coward · · Score: 5, Interesting

      Have to AC this one....

      [ This is a story about why getting "good" checksums to start with is very important. ]

      On a related topic: Ever examined a system you didn't think was broken into, and were sure?

      The sysadmins at my old school did. And they were wrong.

      You see, they connected a new box, the replacement main server, to the LAN, and used an easily-guessable password convention for staff accounts, PRIOR TO RUNNING TRIPWIRE on it. Seems "someone" got in and changed a few key binaries, THEN the admins ran Tripwire. Periodically, when the system got munged and a restore was required, they'd restore the original tapes, Tripwire would yell about a few binaries (including some innocuous distractors), and the admins would dutifully go to backups, find the modified binaries and restore them, figuring they had to be right, because of course, they matched the Tripwire signatures.

      Ya gotta love self-repairing back doors when you're a student at the mercy of admins who work 9-5 M-F, NFS and lpd subsystems that croak only after 10pm or on weekends, and newbies who fill up file systems.

      The local 3-person student root cabal used these back doors for several years, until the machine was replaced. AFAIK, the admins never knew. They had spent much of my undergrad time trying to find SOMETHING I'd done, to punish me for, so if they'd known about this...

    2. Re:Yes, in fact, I have! by Anonymous Coward · · Score: 0

      Dear AC,

      In your previous post, you said that a system would get "munged" and then need to be restored. What does this term mean exactly? Oddly, earlier today I heard someone use that same term as "a sexual act performed using two people and a corpse, which should never be performed." Is the term you are using the same? Or is it from some other root?

    3. Re:Yes, in fact, I have! by Anonymous Coward · · Score: 0

      "To munge", from the local lexicon: to fsck up something in such a way as to render useless (or nearly so) for its intended purpose.

      Systems can either "get munged" (it happens spontaneously, no blame is assigned, such as when there's a hardware failure), or actively "be munged" (the systems programmer they hired instead of me decided to deal with the disk space crisis with "strip /vmunix" or "rm -r /dev").

    4. Re:Yes, in fact, I have! by Anonymous Coward · · Score: 0

      The other munge is when one person goes down on a corpse while the other person sits/stands/jumps/presses on the corpse's lower stomach area in an effort to get the innards to come out into the first person's mouth.

    5. Re:Yes, in fact, I have! by Anonymous Coward · · Score: 0

      sorry to ruin this great idea, but couldn't you write a program that knows the good md5, inserts the virus, and adds junk into the file until it has the same md5 as before? (not sure how much junk you'd have to add or how long it would take, but it's possible. It wouldn't even have to be done on the victim's machine.)

    6. Re:Yes, in fact, I have! by NoData · · Score: 2

      Please see this and also this entry of The Jargon File (aka The New Hacker's Dictionary), the pre-eminent and oldest hacker slang resource, currently maintained by OSS guru Eric S. Raymond.

      (Note the etymology shows no reference to any type of necrophilic acts)

    7. Re:Yes, in fact, I have! by Anonymous Coward · · Score: 0

      Just my luck. My post gets a +5 karma infusion and I don't get credit for it, because I had to AC the post due to the fact that my slashdot handle/identity is known in the security biz. IRL, my professional karma would take too big a hit if folks knew I'd installed a backdoor, even if it was a decade ago. Sigh.

      Of course, I have eked some joy out of the AC post. Because somewhere out there, are at least a few dozen past or present college sysadmins thinking to themselves, "WE use Tripwire.... Hmmm, we did notice after that new machine came in, the hackers didn't complain at us as much for leaving things broken over the weekend.... I suppose it's -possible- that we had the machine on the network before we generated the checksums... It COULDN'T have been him/her/it/them.... Could it?". I intentionally left the time period/platform/region out of the post, for just this reason. Just because I had to AC the post doesn't mean I shouldn't get SOME fun out of it..... :-)

      On the flip side, there are probably also a few administrators who read that and laughed, thinking, "And you think we did not KNOW about this? Just because we have lawful good alignment instead of chaotic good, does not mean we're stupid. You saved us work and headaches, so we winked and looked the other way, smirking about what we were getting away with, just like you did. If you had ever abused the access, we would have been all over you like you wouldn't believe."

    8. Re:Yes, in fact, I have! by Anonymous Coward · · Score: 0

      This would certainly work for CRC-32 or Adler32 checksums. But there is no known computationally-feasible method to force a collision with an existing MD5 checksum. Especially not with meaningful data in the opening bytes of the file.

      That said, there is a collision weakness in the compression rounds of MD5. I don't know of any successful attacks that leverage this weakness, but this isn't really my field and I haven't been looking around much. But if this is the kind of thing that would worry you, 160-bit SHA-1 is considered to be far more resistant to collisions than MD5, and it should be secure enough for any imaginable hashing purpose.

    9. Re:Yes, in fact, I have! by lamontg · · Score: 2
      AFAIK, the admins never knew. They had spent much of my undergrad time trying to find SOMETHING I'd done, to punish me for, so if they'd known about this...

      What is it with college system admins punishing undergrads for the admin's incompetence? I ran into the same kind of problem in college when the admins of my department decided to blame me for the fact that they got rooted every 6 months by the latest root-hole du jour. I did in fact hack one of their machines once, but I got the root prompt, typed 'exit' and sent a capture of the output to the admin of the box. This was back when I was incredibly naive and believe that this was "helping" the admin. After that was recieved so coldly I never did it again, but all I heard about was how they'd love to blame all their rooted boxes on me if they could only find solid evidence.

      Pricks.

    10. Re:Yes, in fact, I have! by Anonymous Coward · · Score: 0

      I have to laugh each time I hear a wannabe "hacker" constantly laugh or poke fun at the lowly sysadmins who "don't know" any better. Coming from an environment where there were 2 IT people managing over 2000 systems and a combination of about 40 servers and to say that we worked from 9-5?????? Yeah right! In what life????? Thing is, certain things take priority, and a lot of time its keeping the classrooms / labs running so that the majority of the students who want to learn have an environment to learn in! To me, it's the vast "MINORITY" of users that cause the "MAJORITY" of damage. And to say that you were hacking to "help" the sysadmin, give me a break!

      This tool does have it's uses for those people who build right from the distrubitions. It will have shortcomings for anything that is customized and compiled.

      While it won't deter those who want to cause trouble, it will for the most part help.

  2. What about source builds? by Anonymous Coward · · Score: 5, Insightful

    Wouldn't this be useless to anybody that builds from source?

    1. Re:What about source builds? by Anonymous Coward · · Score: 0

      Shouldn't that nick read "Anonymous Obvious Guy"?

    2. Re:What about source builds? by bytesmythe · · Score: 2

      If the distributor of your source was compromised to give out a file containing a trojan or other nasty surprise, then no, it isn't useless.

      --
      bytesmythe
      Hypocrisy is the resin that holds the plywood of society together.
      -- Scott Meyer
    3. Re:What about source builds? by Cerlyn · · Score: 5, Insightful

      Indeed; the capability of such a system is a bit limited with operating systems like FreeBSD, which actively *encourage* their users to build/rebuild from sources. IIRC, FreeBSD actually only gives intermediate security updates in source code format so you have to compile them (not too hard: cd /usr/src ; make buildworld).

      So, recording the checksum to /bin/ls, etc. is a bit flawed in that when I do a "make buildworld", my custom configuration parameters from /etc/make.conf get used, overriding CPU type, if Xfree86 is installed, etc. Since my system's parameters likely will not match FreeBSD's master build system, there is a high chance that the checksums after I do a rebuild are significantly different.

      But for non-source distributions (Redhat, etc.) this concept is excellent, assuming that no one compromises the database or the OS kernel. Unfortunately, no database checksummer will ever counteract the case when the OS kernel itself is compromised, potentially returning one file when scanned and another when executed.

      Still, it wouldn't hurt for them to record source file checksums as well; after all, having an independant checksumming group would require them to be compromised as well as the FTP network, making an attacker's life harder.

    4. Re:What about source builds? by pVoid · · Score: 4, Insightful
      Indeed.

      In fact, this system would be best suited for systems which aren't OSS... such as windows =)

      crowd boos... stones and rotten tomatoes fly as author runs for cover

      :)

    5. Re:What about source builds? by Anonymous Coward · · Score: 1, Informative

      You're wrong. If you compile from source you can be sure of what you're getting. You do realize, don't you, that replacing utilities like ls would is a key part of any rootkit?

    6. Re:What about source builds? by Anonymous Coward · · Score: 1, Insightful

      And if enough people did it to matter, rootkits would just compromise your source files too.

    7. Re:What about source builds? by caino59 · · Score: 3, Insightful

      well, that's all fine and dandy...unless your complierer is compromised....

    8. Re:What about source builds? by shamilton · · Score: 3, Insightful

      Because the default /bin/ls is lowest common denominator. As for a waste of time...

      [root@visor:/usr/src/bin/ls] /usr/bin/time make
      Warning: Object directory not changed from original /usr/src/bin/ls
      cc -O -pipe -DCOLORLS -Wall -Wformat -c cmp.c
      cc -O -pipe -DCOLORLS -Wall -Wformat -c ls.c
      cc -O -pipe -DCOLORLS -Wall -Wformat -c print.c
      print.c: In function `printcol':
      print.c:253: warning: `base' might be used uninitialized in this function
      cc -O -pipe -DCOLORLS -Wall -Wformat -c util.c
      cc -O -pipe -DCOLORLS -Wall -Wformat -static -o ls cmp.o ls.o print.o util.o -lm -ltermcap
      gzip -cn ls.1 > ls.1.gz
      1.59 real 0.35 user 0.12 sys

      I can afford the 1.59 seconds.

      sh

      --
      "[A] high IQ is like a Jeep; you will still get stuck, just farther from help!" --Just d' FAQs, c.g.a
    9. Re:What about source builds? by beebware · · Score: 3, Interesting

      Actually, I know Windows 2000 Professional has a similar system. I've recently been installing/reinstalling a few things and suddenly a box popped up saying something like "Windows File Integrity Checker. Windows has detected that vital system files have been modified and to ensure stability needs to restore these files from the Windows 2000 Professional CD". I'm not sure which files it checks or how, but I do know it has got a least "a" level of checking inbuilt.

    10. Re:What about source builds? by Anonymous Coward · · Score: 1, Interesting

      Ahh, Free Software at its best -- the stable verions compile complete WITH warnings!

    11. Re:What about source builds? by pVoid · · Score: 4, Informative
      Yes, the Win32 PE format (portable executable) has a checksum field which is 'normally' not used.

      It *is* checked for *some* critical system images however... I know for sure that some files in /system32 (so called 'KnownDlls') are among this list.

      Note though, that this checksum is to prevent accidental data corruption and not maintain system security integrity; since the checksum field is actually in the file itself, it can be updated after a virus/haxxor has patched the target file.

    12. Re:What about source builds? by shamilton · · Score: 2, Interesting

      Follow the logic:

      307: if (f_sortacross)
      308: base = 0;
      309: for (row = 0; row < numrows; ++row) {
      310: endcol = colwidth;
      311: if (!f_sortacross)
      312: base = row;

      It is obvious how a compiler may think base could be used uninitialised, but clearly it never is.

      sh

      --
      "[A] high IQ is like a Jeep; you will still get stuck, just farther from help!" --Just d' FAQs, c.g.a
    13. Re:What about source builds? by timeOday · · Score: 2
      Still, it wouldn't hurt for them to record source file checksums as well;
      Right. In a source distribution, checksum the source files and whatever binaries you started with (gcc etc) and what's the problem?
    14. Re:What about source builds? by deranged+unix+nut · · Score: 5, Informative

      Unless your compiler, linker, assembler, libraries, or source code have been modified.

      Sheesh, dosen't anyone read old ACM articles?

      http://www.acm.org/classics/sep95/

      At some point, unless you build your system from scratch, cross compile on multiple systems, burn your own BIOS ROM, and write the microcode for your NIC and all other interface devices, you are trusting *SOMEONE ELSE* for the security of your system.

    15. Re:What about source builds? by langed · · Score: 1
      My C skills are a little rusty, but I can see at least one case where base can be left uninitialized.

      Were it so simple as an if/else condition, entirely encapsulated in the loop, the compiler wouldn't fuss at all. But it's not. No, instead it's only partially nested inside a loop (and indeed, never so clear as a good ol' all-conditions-covered if/else expression), and so we must consider the loop condition as we grab the flyswatter and go bug-hunting. If numrows is in fact <=0, the for loop's contents are not executed, and indeed base could be left uninitialized. And that's to say nothing about the cases where this could be done in concurrent code, where the value of f_sortacross could change while this is executing! And thus we'd have instead:

      for (row = 0; row < numrows; ++row) {
      endcol = colwidth;
      if (f_sortacross) { base = 0; } else { base = row; }
      } /* Sorry for breaking the pretty indentation.*/

      And this should (theoretically) compile without a warning. It is, however, arguably less efficient if f_sortacross == 0 and numrows > 1; we've just turned an O(1) evaluation into an O(N) in that case.

      Trust your compiler. If you have a warning, you should probably re-think your code a bit. That compiler is the product of the experience of C coders quite likely more skilled than you are giving them credit for--and the "many eyes make problems shallow" philosophy of OSS would suggest that if it were a compiler bug, it probably would have been squashed long ago....

    16. Re:What about source builds? by shamilton · · Score: 2, Interesting

      You've only proven my point, by thinking exactly what the compiler has. However, if you follow the code up (it's a bit spaghetti-like, computing the number of columns and stuff) you will see that numrows cannot be zero.

      numrows = num / numcols;
      if (num % numcols)
      ++numrows;

      sh

      --
      "[A] high IQ is like a Jeep; you will still get stuck, just farther from help!" --Just d' FAQs, c.g.a
    17. Re:What about source builds? by RDPIII · · Score: 3, Insightful
      Unfortunately, no database checksummer will ever counteract the case when the OS kernel itself is compromised, potentially returning one file when scanned and another when executed.
      Not if you execute your md5sum or other checksum program in a trusted environment, e.g., after booting a rescue system from CD/DVD-ROM. If you suspect that your system has been compromised, you probably wouldn't want to run any executables directly on that system.
      --
      Marklar: marklar
    18. Re:What about source builds? by Anonymous Coward · · Score: 0

      if num is zero, numrows will be too.

    19. Re:What about source builds? by Fweeky · · Score: 2
      Wouldn't this be useless to anybody that builds from source?

      Even worse, if you use, say, FreeBSD, and you build from some cvs tag other than RELENG_4_7_RELEASE or so (I use RELENG_4), chances are you've got quite a few small deltas dotted around the system -- something like this would need to track md5 changes of not just releases, but of the -STABLE branch (at every commit) to be useful to me -- and you've still got the security branches (RELENG_4_[1-7]) to worry about.

      It's hard, even without getting into handling the various differences compiling can introduce -- compilation date timestamps, alternate build options, etc.
    20. Re:What about source builds? by agentZ · · Score: 2

      A database of known good files for Windows is being built by the National Institute for Standards in Technology. It's called the National Software Reference Library and it costs $90 for an annual, agency-wide subscription.

      There are some significant problems with their database however:

      1. It's huge. They have a single giant flat file with SHA-1, MD5, MD4, and CRC-32 values. Right now the file, when uncompressed, is over 1GB.
      2.Over 42% of the entries are duplicates. I found this out by running sort -Uf on it.
      3. Many of the files were hashed before installation. The MD5s for these files often change the installation process.

    21. Re:What about source builds? by n3k5 · · Score: 1

      > ... what's the problem?
      The problem is that the sources you're checking are still 1A-OK after a trojan infected the respective binary.
      Of course you could re-compile all suspicious binaries after having verified that your compiler wasn't compromised. However, as I would find an automatic MD5 check of every binary, which would locate every potential source of trouble, a little more clever, this idea doesn't strike me as revolutionary.
      The project described in the article really is more suitable for binaries. Every site I ever downloaded Unix/BSD/Linux sources from also offered MD5 hashes, so if I know where I got the source from (that's not too hard, is it?), I also know where to get a valid hash.

      Anyway, automating the check that the 'knowngoods' project offers would be really cool: A program that automatically verifies all your binary has the disadvantage that it would have had to be run before the suspected security breach in order to record the required hashes. This is where the database comes into play: If you don't know an MD5, you go look it up and can perform the check anyway. Now that's time-consuming. But if exactly this could be automated...

      --
      but what do i know, i'm just a model.
    22. Re:What about source builds? by Anonymous Coward · · Score: 0

      On OpenBSD I would do something like this to generate a new list of md5sums after a "make build"

      cd /
      /usr/sbin/mtree -c -K md5digest > ~/MYSUMS

    23. Re:What about source builds? by Curien · · Score: 2
      A few points. First, there is a better way to do this, but yours isn't it. Second, just because the compiler gives a warning doesn't mean it's wrong (or that it should be fixed). What it means is that you better know damned well *why* the compiler gave a warning and why it doesn't matter, and you should probably have a comment indicating why you're smarter than the compiler. Third, it's not worth thinking about trivially modifying this for concurrancy. If f_sortacross can be modified by another thread, each read must be locked by a mutex, greatly slowing things down inside the loop. Anyway, here's the corrected, warning-free code. It's almost funny how trivial the fix is.
      base = 0;
      for (row=0; row<numrows; ++row)
      endcol = colwidth;
      if (!f_sortacross)
      base = row;
      Yessiree, Bob. It really is that simple.
      --
      It's always a long day... 86400 doesn't fit into a short.
    24. Re:What about source builds? by Anonymous Coward · · Score: 0

      Also, how do they handle Windohs imports that are machine dependent?

    25. Re:What about source builds? by shamilton · · Score: 1

      Dude. How many times am I going to have to follow the code up to explain that that condition is impossible?

      sh

      --
      "[A] high IQ is like a Jeep; you will still get stuck, just farther from help!" --Just d' FAQs, c.g.a
    26. Re:What about source builds? by blibbleblobble · · Score: 2

      Wouldn't this be useless to anybody that builds from source?

      Yeah. If you check the source code before you install it. Could you fix some bugs while you're there...

      "cofigure/make/install" is no more secure than a binary.

  3. What?! No Windows? by Anonymous Coward · · Score: 2, Insightful

    We need file verification, too! Probably more so with some of the Windows/IE vulnerabilities.

    1. Re:What?! No Windows? by Anonymous Coward · · Score: 1, Funny

      Wow! You're right. I mean, how will you know the Klez virus you have is the right one?

    2. Re:What?! No Windows? by carpe_noctem · · Score: 2

      Windows doesn't really have a good system of labeling releases, and I'm sure that the people running this website don't wanna do this for every service pack available for most microsoft products.

      --
      "Quoting famous computer scientists out of context is the root of all evil (or at least most of it) in programming." - K
    3. Re:What?! No Windows? by frozenray · · Score: 3, Interesting

      We need file verification, too! Probably more so with some of the Windows/IE vulnerabilities.


      Don't worry, you'll have that soon. It's called Palladium.

      As my grandmother used to say: "Be careful about what you wish for, because your wishes might come true". Wise woman.

      --
      "There are already a million monkeys on a million typewriters, and Usenet is NOTHING like Shakespeare." - Blair Houghton
  4. But what happens... by Anonymous Coward · · Score: 1, Insightful

    ... when they trojan your MD5 checksummer? ;)

    1. Re:But what happens... by kasperd · · Score: 4, Insightful

      when they trojan your MD5 checksummer?

      Then your compromised system might apear to be clean. I have actually seen a system where that has happened. But the intruder forgot to trojan the rpm executable, "rpm -Va" revealed everything. But had the intruder trojaned the rpm executable too, that wouldn't have worked. The only secure way to use the verification tool is to boot from a readonly media and run the tool from there.

      --

      Do you care about the security of your wireless mouse?
    2. Re:But what happens... by Anonymous Coward · · Score: 0

      It could even connect to this database and retrieve the correct sums from there!

    3. Re:But what happens... by zcat_NZ · · Score: 2

      otoh if you're planning to write a trojan md5sum and need a database of 'known-good' checksums for it to return.. voila!!

      --
      455fe10422ca29c4933f95052b792ab2
    4. Re:But what happens... by NNKK · · Score: 1

      In that case, I have to ask what on earth are you doing using the tools already present on a potentially compromised system to determine if the system was compromised?! You may as well hang up your sysadmin gloves now if you do that.

    5. Re:But what happens... by hondo_san · · Score: 2, Insightful
      Kind of reinforces one thing I sometimes forget to do on a new ftp install, and that is to immediately copy all of the binaries that one would use to detect a comprimised box -- ps, top, ls, md5, and several others that one could find in a book or Wepage devoted to security -- to a read-only CD. Oh yeah, throw in NMap, too. Of course, immediately next should be Tripwire.

      That way, at the first sign of trouble, you just toss in the disk of known-good tools, with the confidence that at least that stuff is clean. Yes there are ways other than this, I'm sure, but for us non-super-guru types, it's pretty handy.

    6. Re:But what happens... by Anonymous+Bullard · · Score: 2

      The only secure way to use the verification tool is to boot from a readonly media and run the tool from there.

      This would be a useful feature addition to the rescue mode of boot CDs.

      Security could/should be made more newbie-friendly.

      Another thing is that with *free* platforms the distro-builders need to earn their living from services rendered, and security is as good a service as anything. With internet access being in the core of everything, couldn't the distro companies also provide optional integrity checking service over a secure connection? I could envision a write-once space for uploaded checksums against all installed packages...

      Of course, once distros start creating such remote personal customer services the door opens for a host of new support and service packages (built-in webhosting etc., anyone?). Credible distro makers would probably benefit from their reputation at the expense of fly-by-night operators.

      --

      Should invading one's peaceful neighbours be opposed, or rewarded with trade deals?

    7. Re:But what happens... by Anonymous Coward · · Score: 0

      ... when they hack http://www.knowngoods.org/? ;)

  5. So what about the obvious scenario... by Samir+Gupta · · Score: 2, Insightful

    What if someone hacked into the MD5 database and changed the entries? :-)

    --
    -- Samir Gupta, Ph. D. Head, New Technology Research Group, Nintendo Co. Ltd., Kyoto, Japan.
    1. Re:So what about the obvious scenario... by cscx · · Score: 2

      It wouldn't mean jack shit, except for keeping the admin on his toes.

    2. Re:So what about the obvious scenario... by neurostar · · Score: 2, Interesting

      What if someone hacked into the MD5 database and changed the entries?

      This is definately a legitimate concern. I would be wary about this.

      There is one possibility however. Even if the entries are changed maliciously, the MD5 sums might possibly be different from the rootkit that is installed. IIRC rootkits are compiled on the host machine, and this might change the MD5 sums for the rootkit. Also, there are different sources of rootkits, so that would also affect the MD5 sums and the feasibility of changing the entries.

      neurostar
    3. Re:So what about the obvious scenario... by BitHive · · Score: 4, Insightful

      Then I imagine that as soon as someone changes a hash, many secure systems will indicate they've been comprimised, and the whole thing will be quite obvious to sort out.

    4. Re:So what about the obvious scenario... by Anonymous Coward · · Score: 0

      Maybe they should checksum the whole database too so we can be safe of that too...

    5. Re:So what about the obvious scenario... by Helen+O'Boyle · · Score: 1

      Keep the database on CD or on hardware-write-protected disk (if your OS supports this), with a minimal system using a very minimally sized hard disk, so at least it'd take a little bit more effort to replace with bogus entries.
      --
      * Helen *

  6. This is one of those things... by carl67lp · · Score: 3, Insightful

    This is the type of thing that you'd ask "Why didn't they do this sooner?" -- it's just that logical of an idea.

    Absolutely fabulous, wonderful! The real trick, though, is to build up trust in your database so that those searching it will be sure that the checksums are actually correct--you know, rather than buying a burglar alarm from the robber himself. Thus, I doubt you'd be able to take submissions from users right away--at least without a competent staff checking to make sure they're correct.

    1. Re:This is one of those things... by Anonymous Coward · · Score: 3, Informative


      It WAS done sooner. Sun have a fingerprints
      database for Solaris binaries.

  7. Cool? by kir · · Score: 2, Interesting

    You know, this is sort of cool... until it gets hacked (cracked... whatever) and then your entire OS looks bad. Wait. That is COOL!

    --
    3cx.org - A truly bad website.
  8. Useful, but.... by Anonymous Coward · · Score: 0

    Sounds like a useful idea, kind of like Sun's signed patches. Keeping up might be a challenge.

    You might want to include source tarballs of important software, otherwise it won't be of much help to those of us who roll our own.

  9. You know... this brings up a question.... by tvadakia · · Score: 1

    Would anyone know what field os study, what references, classes, or otherwise would be usefull in getting into Computer Forensics? Or, to specify, forensics of either computer crime, or finding proof to a crime within a computer. It's of great interest to me as it may be a direction I may be heading into.

    --
    Unique.
    1. Re:You know... this brings up a question.... by Anonymous Coward · · Score: 0

      The web site is an apache test page.

      A visiting speaker gave a seminar like that at Victoria University of Wellington, but I missed it.

    2. Re:You know... this brings up a question.... by base3 · · Score: 1

      From what little reading/talking to people I've done, it really helps to be a cop first.

      --
      One CPU cycle wasted on digital restrictions management is ONE TOO MANY.
    3. Re:You know... this brings up a question.... by jcoy42 · · Score: 5, Interesting

      You could start by subscribing to the forensics mailing list over at securityfocus.com. The honeypots list is also of interest.

      Both lists have a fairly good signal-to-noise ratio, and there is a lot of good info to be had.

      If nothing else, it's certainly a good place to ask that exact question.

      You can sign up here.

      --
      Never trust an atom. They make up everything.
    4. Re:You know... this brings up a question.... by jroysdon · · Score: 1

      Heh, our local "computer foresics" cop is a total joke. He even teachs classes at our local CC.

      Guy gets off on spreading FUD about "traveler cases" where kids get "abducted" or tricked into meeting with strangers online... yeah, it happens, but the way this guy talks if you don't watch your kid every single second they're online, it's like someone is gonna find them online and snatch them on their way to school... wait, that could happen without the internet.

      Anyway, just ranting about it. Check your local PD and/or community college for help on how to be a "by the book" clueless FUD-spreader.

      Although, I always thought it'd be cool to work for the FBI or CIA :-/

    5. Re:You know... this brings up a question.... by Anonymous Coward · · Score: 0

      "Although, I always thought it'd be cool to work for the FBI or CIA :-/"

      Easy, run into houses at gun point and break stuff. If the owners ask to see the court order just punch them in the face.

      Or when some events are terrorizing people, just arrest random punks on the street to look like you are doing your job. If the events persist, blame Al Qaeda.

      You could also work for UN walking door to door asking if they are hidding any bombs, if their answer is no, well your job is done, you are going back home.

    6. Re:You know... this brings up a question.... by Anonymous Coward · · Score: 0

      A big part of the answer depends on your definition of "computer crime" and "crime within a computer".

      For example, you could make an entire career out of specializing in any of the following:

      Recovering data on hard disks that someone attempted to delete. Electrical engineering and deep knowledge of a variety of operating systems would help there.

      Obtaining evidence to indict copyright violators. The RIAA has big money to spend on people skilled in the ways of P2P network protocols and knowledgable about IT infrastructures and copyright laws.

      Tracking down system crackers and DoS attack sources. No one is too skilled in this area. Deep knowledge of network protocols is a good start.

      Surreptitious installation and remote operation of monitoring devices for clandestine Homeland Security operations. Being an FBI agent would help you out here as much as knowing about microcontrollers and hiding VxDs in windows.

      Personally, I think any reasonable person would hate themselves, their job, and their lives after several years of doing investigations for macho, greedy, sleazy, or big-brotherish people and organizations, but whatever snaps your socks.

    7. Re:You know... this brings up a question.... by base3 · · Score: 1
      Personally, I think any reasonable person would hate themselves, their job, and their lives after several years of doing investigations for macho, greedy, sleazy, or big-brotherish people and organizations, but whatever snaps your socks.

      That pretty much sums up how I felt after having looked into the forensics field as a potential career--that I would be lending my technical skills to the guys with mirrored sunglasses when the bust down the doors of 13 year olds for defacing a web site as if they had murdered little old ladies and eaten their innards.

      --
      One CPU cycle wasted on digital restrictions management is ONE TOO MANY.
    8. Re:You know... this brings up a question.... by Anonymous Coward · · Score: 0

      Sounds like you bought the recruitment hype. I'd bet 90% of computer forensics is looking in people's "recycle bin" and "history" as part of civil lawsuits between corporations.

    9. Re:You know... this brings up a question.... by base3 · · Score: 1

      Could be--but if it's really as you describe, it'd be even more boring that what I do now, so either way, it doesn't seem like it would have been a great career choice.

      --
      One CPU cycle wasted on digital restrictions management is ONE TOO MANY.
  10. Good thinking 99 by spress · · Score: 0

    Put the cheksums for trojaned programs in the database, then crack the popular download sites. Who would know?

    --
    Subverting the meta-moderating system since 2003
    1. Re:Good thinking 99 by russx2 · · Score: 1

      Now that is definitely one of those easier said than done scenarios... While not a failsafe method, this seems a pretty good idea. Those with precompiled binaries would find it the most useful tho I guess.

  11. ooooo nifty by netwiz · · Score: 5, Insightful

    I've been wondering when something along these lines would be available.

    [devil's advocate] However, how do we know that the pregenerated checksums are correct? Who watches the watchers? [/devil's advocate]

    Yah, yah, I know, the easiest way is to inspect the source for the minicompiler, the main compiler, and the program by hand, then build all of them step-by-step until you're done, then use the final binary to generate your hash. I wonder, tho, how much drift might there be in using a pre-built compiler (say I D/Led the binaries for GCC and the libraries to go with it). One tiny change in machine state (or any other number of things I would suppose) could result in the final binary being a single byte off, and the whole thing's a wash.

    Granted, I may be talking out of my ass here, could someone w/ some hard-core coding knowledge or CS experience expound on the above?

    1. Re:ooooo nifty by MrWa · · Score: 1
      [devil's advocate] However, how do we know that the pregenerated checksums are correct? Who watches the watchers? [/devil's advocate]

      And haven't past trojaned programs come with MD5 checksums that matched? (thinking back the OpenSSH here...)

    2. Re:ooooo nifty by Mnemia · · Score: 2

      Yes, but only because this whole system is pretty weak cryptographically. What should be done is that the binary should be signed with a private key only available to the legitimate developers. This notion of having md5sums to verify integrity is useless if the hash value and the actual binary are stored on the same server, where both can be compromised at the same time.

    3. Re:ooooo nifty by miu · · Score: 1
      This notion of having md5sums to verify integrity is useless if the hash value and the actual binary are stored on the same server, where both can be compromised at the same time.

      Exactly. The system under discussion is better because the checksum is stored remotely. There is still the possibility that 'ls' or 'md5sum' or 'md5' or 'libcrypt.so' or ... ANYTHING has been compromised on the local system to return a result that looks okay.

      A paranoid could only only feel good about this type of system by checking files with statically compiled binaries stored on read-only media, the identity of the remote server verified by private key, the integrity of the remote data verififed by private key, and all this done with randomly generated names for everything to avoid triggering pattern recognition on 'security' 'md5' or the like by any trojan lurking in the kernel or libc.

      --

      [Set Cain on fire and steal his lute.]
    4. Re:ooooo nifty by Anonymous Coward · · Score: 0

      Like the GnuPG guys do?

  12. Checksum by Anonymous Coward · · Score: 1, Informative
    checksum:
    <storage, communications> A computed value which depends on the contents of a block of data and which is transmitted or stored along with the data in order to detect corruption of the data. The receiving system recomputes the checksum based upon the received data and compares this value with the one sent with the data. If the two values are the same, the receiver has some confidence that the data was received correctly.

    The checksum may be 8 bits (modulo 256 sum), 16, 32, or some other size. It is computed by summing the bytes or words of the data block ignoring overflow. The checksum may be negated so that the total of the data words plus the checksum is zero.

    Internet packets use a 32-bit checksum.

    1. Re:Checksum by netwiz · · Score: 1

      oh whatever, it's late, and I'm on only a few hours sleep. cut me some slack :) I got it right later on...

      could someone who doesn't want to punk me out give some insight to my earlier question?

    2. Re:Checksum by Anonymous Coward · · Score: 0

      To answer your earlier question, yes it's okay to have sex with your own mom. As long as you don't talk about it to your daddy.

  13. One other thing... by carl67lp · · Score: 1

    Oddly, a search of both FreeBSD 4.7-Stable and Red Hat 8.0 for "apache" or "openssh" yielded no results.

    Either I don't know how to search, or instructions need to be posted on how to search! That, or ... what about a list of all checksums for a complete distro?

    1. Re:One other thing... by kjd · · Score: 1

      It is searching for names of binaries, as opposed to names of the projects that created them. Try "httpd" and "sshd".

      Also, Apache is not part of FreeBSD's base system.

    2. Re:One other thing... by MavEtJu · · Score: 2

      FreeBSD doesn't ship with Apache installed. /usr/bin/ssh shows up as 69de0f3690516ffe8e7a3661f2e01b0c and 89704 bytes, but on my machine (4.7 installed last saturday) it's bf470c491274e8739111d5723b90d88f and 85832 bytes. Oh dear...

      --
      bash$ :(){ :|:&};:
  14. What about Windows OS? by scubacuda · · Score: 5, Insightful
    I didn't see the ability to search for Windows MD5 hashes.

    Considering its history of vulnerabilities, I'd think that this would be pretty important...

    1. Re:What about Windows OS? by boopus · · Score: 1

      I realize I shouldn't take this question seriously, but... In reality, windows hashes aren't too valuble because windows isn't open source. You can't compile a explorer.exe with a nice back door added in unless you've got the source to explorer.exe.

    2. Re:What about Windows OS? by Trusty+Penfold · · Score: 3, Insightful


      You can't compile a explorer.exe with a nice back door added in unless you've got the source to explorer.exe.

      Of course you can - it is trivial to alter the behaviour of a Windows executable; viruses do it all the time.

      Append the backdoor to explorer.exe, fiddle with afew bits so the backdoor gets executed first, and find a way to drop it onto the system.

    3. Re:What about Windows OS? by kubrick · · Score: 4, Insightful

      What about viruses that change the structure of the files they infect? Especially ones that haven't been spotted by the anti-virus firms yet (rare, I know, because they probably develop and release most of them).

      Also, can't people still use disassemblers to 'crack' files, and maybe add backdoors at the same time?

      Both of these activities would be reflected by checksum changes.

      --
      deus does not exist but if he does
    4. Re:What about Windows OS? by scubacuda · · Score: 2
      I'm not a programmer... ..but I have played with Tripwire on Windows.

      I thought it would work much the same way: you'd compare the DB hash with the actual hash of the file to determine its integrity (without regard to its source code).

      How does this not affect Windows?

    5. Re:What about Windows OS? by MrWa · · Score: 1
      I didn't see the ability to search for Windows MD5 hashes. Considering its history of vulnerabilities, I'd think that this would be pretty important...

      Well, if you realized that those vulnerabilities were in the released and correct versions of the Windows software it wouldn't seem that important. Unless you just wanted to prove that you had an insecure version of some software...

    6. Re:What about Windows OS? by Sludge · · Score: 2
      I understand that, starting with win2k, renaming all of the mainstay windows files will have them automatically come back. But, you can disable that in the registry. So, assuming a trojan has done that...

      First, rename explorer.exe to something else. Next, create a new explorer.exe which executes whatever you want it to, and then have it execute the old explorer.exe so it behaves as normal. Transparent to most users.

    7. Re:What about Windows OS? by edwardkung · · Score: 1

      Kerio personal firewall does a MD5 check on programs that use the internet. If the program's md5 code is different from the one initially used to create the firewall rule, the user is asked what to do. (Accept/Reject)

    8. Re:What about Windows OS? by Anonymous Coward · · Score: 0

      You don't even have to have them in separate files. One (naive, beacuse it's easily spotted) method is to add another segment to the exe file and change the entry point to point to the code in there, which does its stuff then jumps to the old entry point before it was changed.

    9. Re:What about Windows OS? by zapfie · · Score: 1

      Uh.. I think he means vulnerability to viruses and trojan horses that can modify system files to do nasty things. An MD5 hash database of known good Windows files would be useful for this.

      --
      slashdot!=valid HTML
    10. Re:What about Windows OS? by Anonymous Coward · · Score: 0

      Why isn't it there?

      1)Try to keep up with the patch releases on Windows Update.

      2)Where's the md5sum feature built into Windows? Wait, you don't mean that I'd have to install something, do you?

      3)Even if you keep up with windows update, how many end users will know what patches they have installed? With 2K/XP, just set the windows update utility to auto-download and then ask you to push "OK" to install it, and you'll never know what patches you have installed. (Ignorance is so easy, no wonder they call it bliss)

      4) "If it was really important, Microsoft would have built it in"

      5)There's the automatic implication of providing tech support via email when people can't get it to work.

      6)If it was popular with Windows users, they'd need to buy more bandwidth.

      Yes, it would be nice, but it would probably create more problems for knowngoods.org than it would help Windows users.

    11. Re:What about Windows OS? by Toy+G · · Score: 1

      Well, ask Microsoft. They have the last word on which of their files is *really* good.

      If you try to act as "MD5 certification authority" for Windows without asking them, they will probably (and reasonably, after all) complain.

      (btw, I'm very happy the FS community is doing something smart to improve security standards)

      --
      -- Let's go Viridian.
    12. Re:What about Windows OS? by Anonymous Coward · · Score: 0

      This is not humour.
      Mods : Please do not moderate this comment +1 Funny.
      Meta-Mods : Please M2 this as Unfunny
      Mummy: Please make me some breakfast

    13. Re:What about Windows OS? by dazdaz · · Score: 1

      I don't see why it can't be disassembled?

    14. Re:What about Windows OS? by Cpl.+Beowulf · · Score: 1

      For Windows (and many other OS's for that matter) you can always turn to the National Software Reference Library (NSRL) put out by NIST.

      You can get an anual subscription, with quarterly updates, for $90. Once you have it, though, it can be freely distributed.

      --
      perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(1 15),10);'
    15. Re:What about Windows OS? by Tim+C · · Score: 2

      With reference to your first and third points, on the dialogue box you get when an update has been detected, there's a "Details" button that tells you exactly what has been found, what it does, etc - just as if you ran Windows Update manually.

      Besides, I really don't see the problem - even with all the patches available via Windows Update, there is still a fairly small number of possible md5sum values for each file. It wouldn't take long at all to compare the computed value with each of the known good ones, only flagging a warning if they all fail to match.

    16. Re:What about Windows OS? by Tim+C · · Score: 2

      Tiny Personal Firewall does that too (or equivalent - I don't if it's actually an md5 check), and I'm pretty sure that Norton's firewall software does as well.

    17. Re:What about Windows OS? by loconet · · Score: 2

      They only have so much hard drive space...

      --
      [alk]
    18. Re:What about Windows OS? by balloonpup · · Score: 1

      Just as an aside: Kerio bought Tiny Software. Kerio Personal Firewall is Tiny Personal Firewall. It doesn't seem to have changed /much/...

      --
      I sing the doggie electric!
    19. Re:What about Windows OS? by Trusty+Penfold · · Score: 1

      Oooo yeah! Bacon, eggs, blackpudding, beans and fried bread please!

    20. Re:What about Windows OS? by jafac · · Score: 2

      I'm guessing that if they did that, they'd thereafter shortly get a C&D letter from MS saying they're violating the DMCA. (whether they technically are or not).

      --

      These are my friends, See how they glisten. See this one shine, how he smiles in the light.
    21. Re:What about Windows OS? by jafac · · Score: 2

      Actually, it kinda-sorta *IS* built in.

      It's called Windows File Protection.

      The scary thing is - you can download the docs from MSDN on how it works, and then you can try to test it (go ahead, delete a file in \system32, and watch what happens) - and it in no way works as documented. It *does* protect your system files - but it has some unexpected behaviors.

      It's built into the netlogon service, so it's active as soon as you log into the system.

      --

      These are my friends, See how they glisten. See this one shine, how he smiles in the light.
    22. Re:What about Windows OS? by Anonymous Coward · · Score: 0
      Just as an aside: Kerio bought Tiny Software. Kerio Personal Firewall is Tiny Personal Firewall. It doesn't seem to have changed /much/...

      Actually, the team at Tiny that made the firewall forked the code and started the company Kerio. Tiny still produces a firewall, but it is not the same developers. For the original developers, use Kerio.

  15. Compromised /bin/md5 by Cadre · · Score: 5, Informative

    What they don't say and what a lot of security folks forget to do is that they can't check your checksums of binaries on the same box. You need to copy the files to another box and check the checksums there with a known good version of your checksumming binary. The local version of your checksumming binary could have been compromised.

    Heck, the utilities you used to pull the binary off the machine in question could have been compromised and may not be actually copying the binary in question, but a good version of the binary. The only way to check this would be to mount the drive on another machine and check it there... And if people aren't doing that (which it's a pain in the ass) all this website is going to do is give people a false sense of security.

    --
    All editorial writers ever do is come down from the hill after the battle is over and shoot the wounded.
    1. Re:Compromised /bin/md5 by GigsVT · · Score: 1

      It's easier to just boot off known good read-only media, mount the file systems in a mount directory and use the utilities from that. Most distros have bootable install CDs these days that you can use for this.

      --
      I've had enough abrasive sigs. Kittens are cute and fuzzy.
    2. Re:Compromised /bin/md5 by int69h · · Score: 1

      Wouldn't keeping a static binary of your utility on removable media be easier? Why bring the files to the utility when you can bring the utility to the files?

    3. Re:Compromised /bin/md5 by Anonymous Coward · · Score: 0

      Worse, a trojaned MD5Sum could be created ( and I'm going to code one tonight ), that uses uname to find out the current host type, and then gets the correct MD5 from this website, and substitutes that. In such an environment, this website actually provides exploit cloaking!

    4. Re:Compromised /bin/md5 by alonsoac · · Score: 1

      The only way to check this would be to mount the drive on another machine and check it there...

      Or, as someone else mentioned, you can boot from a CD where you have known good copies of all the files you need to perform the security checks, copy files, etc.

    5. Re:Compromised /bin/md5 by Anonymous Coward · · Score: 0
      Wouldn't keeping a static binary of your utility on removable media be easier?

      then attacker hacks your kernel to load alternate, malicious bin when you run your md5 program.

      Why bring the files to the utility when you can bring the utility to the files?

      b/c you must eliminate everything that has the potential to have been cracked.

    6. Re:Compromised /bin/md5 by iabervon · · Score: 2

      If md5sum doesn't work when you disable the network, be very very suspicious...

    7. Re:Compromised /bin/md5 by Anonymous Coward · · Score: 0

      Duh. Don't load the kernel off the compromised machine. Both the kernel and the utilities used for inspection would be on the removable media.

      Please think before you are so quick to correct others.

    8. Re:Compromised /bin/md5 by Idarubicin · · Score: 3, Insightful
      Heck, the utilities you used to pull the binary off the machine in question could have been compromised and may not be actually copying the binary in question, but a good version of the binary. The only way to check this would be to mount the drive on another machine and check it there... And if people aren't doing that (which it's a pain in the ass) all this website is going to do is give people a false sense of security.>Heck, the utilities you used to pull the binary off the machine in question could have been compromised and may not be actually copying the binary in question, but a good version of the binary.

      Other replies have mentioned that it might make more sense to boot off known clean read-only media, on which you also have a copy of your checksum utility.

      That said, this still provides a false sense of security. The only way to be absolutely certain that your binaries have not been compromised is the following technique:

      Have all your code written by hermit programmers. They must develop their OS and all programming tools (compilers, etc.) by themselves, on a computer that has no connection to the outside world. Taking an OS from another hermit programmer is also acceptable, as long as it is conveyed by hand from one to the other.

      You must know and trust all of the hermit programmers.

      The hermits must live, eat, and sleep in giant vaults designed to provide physical security to them and their computers. They definitely will not have telephones.

      They must develop applications from scratch--no outside data may be allowed to contaminate their pristine systems. Source code may be imported, as long as it is delivered in hard copy form and hand keyed by someone who is very security conscious.

      The hermits must hand deliver the binaries of applications to you. You should have already received a copy of their pristine OS by this method.

      Presto! Completely secure binaries. No trojans. No false sense of security.

      Oh, unless someone finds a buffer overrun that your hermits missed. Then some kiddie will own your box. Damn.

      --
      ~Idarubicin
    9. Re:Compromised /bin/md5 by Anonymous Coward · · Score: 0

      You neglected to mention the difficulties with trusting hardware. More hermit engineers are required! Of course this dramatically improves the probability of an evil hermit infiltrating your production system somewhere. I'm sorry, but the only way to be truly secure is to kick out all the hermits and live in the caves yourself! Right your own operating system and applications on a minicomputer you built with rocks and twigs and those chewy little bugs that are now your only source of food because everything from the outside is contaminated. It's all a Communist plot to sap and impurify our precious bodily fluids! We cannot allow a mineshaft gap!

    10. Re:Compromised /bin/md5 by Anonymous Coward · · Score: 0

      Right your own operating system . . .

      You know they say that the average programmer has a bug in every seven lines they write.

    11. Re:Compromised /bin/md5 by CaseyB · · Score: 2
      You need to copy the files to another box and check the checksums there with a known good version of your checksumming binary

      You're being ridiculously pedantic about the theoretical limits of security, yet you naiively trust tar/dd/cp/NFS to copy the files correctly? You trust the drive firmware? The machine's BIOS? The CPU?

      Either take the security argument to its true limits, or realize that practical choices need to be made and be quiet.

    12. Re:Compromised /bin/md5 by shird · · Score: 2

      And what if you have a compromised kernel? Even if the binary on the disk is 'clean', and md5's ok on any box, when loaded and run on the compromised system any code could be run.

      But how can the kernel be compromised by just d/ling a binary you ask?...Exactly, it can't, the same with md5. If someone has managed to compromise md5 on your machine, youve got more problems than not being able to verify d/ld files, your machine has already been rooted.

      --
      I.O.U One Sig.
    13. Re:Compromised /bin/md5 by Anonymous Coward · · Score: 0

      so why did you mention it again?

    14. Re:Compromised /bin/md5 by Anonymous Coward · · Score: 2, Funny

      You know they say that the average programmer has a bug in every seven lines they write.

      Then I must be an above average programmer since I have more than one bug every seven lines!

    15. Re:Compromised /bin/md5 by Tokerat · · Score: 2
      youve got more problems than not being able to verify d/ld files, your machine has already been rooted.

      Wouldn't that be the whole point to running a checksum scan on your system's binaries?

      *scan* Oh good, everything's fine.

      -OR-

      The hell? I've been r3wt3d! d00d!

      I don't think this is in reference to just verification of "d/ld" files, but a method for scanning your already existing system for problems.

      The most secure thing I can think of to do would be have a server box (a nice high powered full-throttle beast, imagine a beowulf cluster of THESE) and a security check box (P3 166 with 64MB RAM/8GB HD is plenty). Have a cron-triggered script and a checksumming verification program on the security box which in the middle of the night, or even at random times whenever, will bring up eth0 on the security box, mount the server's disks over NFS, check them, and then bring down eth0 so as to isolate the security box. Such a thing would probably work better with a cluster of servers, say a load-balancing system of web servers, so that only one box out of the total whole had to be down at once and the rest could still be functioning, while the box being checked is isolated by a controlable router or something. Of course that's gotta be secure, too....ARG headache
      --
      CAn'T CompreHend SARcaSm?
    16. Re:Compromised /bin/md5 by the+way,+what're+you · · Score: 2
      Worse, a trojaned MD5Sum could be created ( and I'm going to code one tonight ), that uses uname to find out the current host type,

      And what makes you think you can trust uname, or anything the kernel tells you for that matter? Mwu-ha-ha-ha...

      --
      example.org - powered by Linux!
    17. Re:Compromised /bin/md5 by commbat · · Score: 1

      P3 166

      Why the clocked-down P3?

      --
      'Intellectual Properties' are uncontrollable in the wild. To base an economy on them is just stupid.
    18. Re:Compromised /bin/md5 by Pooh · · Score: 0

      Why not compile a md5 or cksum staticaly from a trusted host and use it instead?

    19. Re:Compromised /bin/md5 by bonzoesc · · Score: 3, Funny
      What if the hermits' computer components have backdoors that automatically insert backdoors into everything written on them?

      You'd have to have sterile hermits manufacturing CDs out of their own feces and urine (sterile) and burning code on them with laser pointers manufactured from the same source with machines made out of (you guessed it!) poop and piss.

      Now you know why I hate those filthy asshole hermits.

    20. Re:Compromised /bin/md5 by phrantic · · Score: 0

      You can burn them to a CD, which makes them read only. This however is as much of a pain in the ass as mounting the remote drive.

      --
      --My sig is bigger than your sig--
    21. Re:Compromised /bin/md5 by DJPenguin · · Score: 2

      OK, I'll admit I'm not 100% sure about Richard Stallman's personal life, but from what I've heard, I think I can trust /usr/bin/gcc :)

    22. Re:Compromised /bin/md5 by evilpenguin · · Score: 2

      Dont forget to make that NFS mount noexec when you do it! You can't be too careful. And while we are at it, if there are compromised machines on the network, how do you know the network data stream isn't being modified? Sure, it is not easy, but it is certainly not impossible. Remember that you are mounting an export from a potentially compromised system. If the machine had enough room on it, how do you know that you are even mounting what you think you are mounting? Maybe they copied the whole file system into a loopback filesystem and they chrooted the nfs daemon. Everything checks out fine from the checker box, but the system is now running a spam server.

      I don't think the technique is sound.

      My personal preference is to build systems where all the binaries are on WORM media (CD-R is fine) and the modifiable parts are mounted from the hard drive (/var and /home). Everything else is on the CD-R. Sure, the box might still get rooted, but it'll be damned hard to compromise the binaries.

      All this said, I completely agree with those folks who say that ultimately you trust something. You have to make practical considerations since you can only know the security is perfect if you actually fabricated every component with your own two hands.

      And, to veer into another round of MS bashing, this brigs up Palladium, which is assuring you that YOU cannot trust your computer, but Microsoft and other content providers can. Swell. I'm looking forward to that...

    23. Re:Compromised /bin/md5 by Anonymous Coward · · Score: 0

      Would you trust your confidential data in the hands of a child molester homeless hippy?

    24. Re:Compromised /bin/md5 by Cadre · · Score: 2
      Presto! Completely secure binaries. No trojans. No false sense of security.

      Yes yes, there is a point where the paranoia no longer pays off. :-)

      I don't think my point is outrageous because with a list of known good checksums for lots of binaries available, it makes it very easy for those of ill-will to backdoor checksum utilities.

      I think most people will agree that solutions posted in reply to my post such as booting a kernel from a r/o medium, turning off loadable kernel modules, and having important binaries (/bin/) on r/o mediums is not too paranoid (ie: hermit solution) but is very good security.

      --
      All editorial writers ever do is come down from the hill after the battle is over and shoot the wounded.
    25. Re:Compromised /bin/md5 by Cadre · · Score: 2
      Either take the security argument to its true limits, or realize that practical choices need to be made and be quiet.

      Keeping your kernel on r/o medium, turning off loadable kernel modules, and keeping your important binaries on r/o medium is a very practical choice and addresses the points that I brought up.

      --
      All editorial writers ever do is come down from the hill after the battle is over and shoot the wounded.
  16. Polymorphic files by cperciva · · Score: 5, Informative
    There is one problem with this: Some files are going to be different every time they are compiled. In particular, quite a few files include time stamps.

    A few months ago I put together a list of the "polymorphic" files in FreeBSD 4.6:

    /kernel, /boot/loader, and /boot/pxeboot all contain user, host, time, and date stamps, as expected.

    All .a files (126 in /usr/lib, one in /usr/libdata/perl/5.00503/mach/auto/DynaLoader) contain indices of .o files, including seconds-since-epoch stamps

    User, host, time, and date stamps are found in /etc/mail/freebsd.cf /usr/sbin/named /usr/libexec/named-xfer

    Time and date stamps are found in: /usr/bin/suidperl /usr/bin/ntpq /usr/sbin/ntp(d|date|dc|timeset|trace) /usr/sbin/isdn(d|debug|monitor|phone|telctl) /usr/libdata/perl/5.00503/mach/perllocal.pod

    Date stamps are found in: /usr/sbin/ppp /var/db/port.mkversion /usr/share/doc/usd/(07.mail|13.viref|18.msdiffs|19 .memacros|20.meref)/paper.ascii.gz (once you ungzip them) /usr/share/perl/man/man3/(Config|DynaLoader).3.gz (once you ungzip them)

    Files which are always the same size, but have randomized contents: /usr/share/games/fortune/*.dat /var/games/phantasia/void


    These files are always going to set off alarms if you've upgraded-by-source. (On the other hand, if a file *not* on this list has a different checksum, it probably just means that you've applied a security patch.)
    1. Re:Polymorphic files by stratjakt · · Score: 1

      No, but you can make sure your compiler is okee-fine before you go compiling, and you could possibly do an md5 audit of all the source files you use.

      But I thought open source was super-duper impregnal because everyone who uses it carefully examines each line of code before compiling and using it, and would instantly notice any piggybacked routines or out of place library calls.

      Well, I'm being sarcastic... Truth is, noone would notice if the latest kernel patch had a few lines in it giving root access to UID: troll PWD: goatse

      MD5 hashes on the source code help.

      Of course, like any digital (or regular) signature, it's only as good as the signator.

      Lots of people wouldn't hesitate to sign 'Bill Gates' on a million dollar cheque. Or "Linus Trovalds" on a kernel update they snuck onto one of the mirrors.

      --
      I don't need no instructions to know how to rock!!!!
  17. md5sum Binary Might Be Trojaned by John+Hasler · · Score: 5, Informative

    Boot from a known good floppy or CD to check your md5sums.

    --
    Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
  18. Thanks for the help by Anonymous Coward · · Score: 0

    I'm working on a trojan md5sum program and it was getting suspiciously large because of all the md5 sums it has to contain. But now I just have to make a network connection to your database. Thanks a bunch!

  19. what about suns fingerprint database by ybrich · · Score: 1

    That covers all the issues with keeping uptodate, from a 'trusted' source.. of course its no help for those not running Sun.. http://www.sun.com/solutions/blueprints/0501/Finge rprint.pdf Get access to Suns database, or just drop it, and point Sun users to Sunsolve

    1. Re:what about suns fingerprint database by ybrich · · Score: 1

      Feck http://www.sun.com/solutions/blueprints/0501/Finge rprint.pdf

  20. Furthermore, by Anonymous Coward · · Score: 1, Funny

    I need a daemon that will monitor the binaries and check their md5 with this database to keep me secure!

    1. Re:Furthermore, by CableModemSniper · · Score: 3, Funny

      I need a daemon that will automatically checksum the daemon. And then a daemon to automatically checksum the checksumming daemon. And a daemon to automatically checksum the daemon checksumming daemon checksumming daemon and a daemon...

      --
      Why not fork?
    2. Re:Furthermore, by dknj · · Score: 2

      Lisa : "Who will police the police?"
      Homer : "I dunno. Coast Guard?"

      -dk

  21. Local utility would be better by tricknology · · Score: 1

    While this is all well and good, it seems what would be better is a local utility that would allow scanning of the system for executables, etc. MD5 Hashes can be computed, and the results burned to a CD. This will eliminate the problem of different hashes due to things like timestamps, etc.

    Still kinda cool, tho.

    --
    I never been so broke that I couldn't leave town.
  22. Filtered as a "Hacking" site by KidSock · · Score: 4, Interesting

    Mu corporate www proxy filters this site as category "Hacking".

    1. Re:Filtered as a "Hacking" site by Anonymous Coward · · Score: 0

      But it doesn't filter this subversive site known as Slashdot?

    2. Re:Filtered as a "Hacking" site by feronti · · Score: 1

      Could be worse... our webfilter categorized the samba site as hacking... I got questioned by the internal auditor when I was looking at ways to better integrate our unix systems with our win2k systems. What was really irritating is that she didn't even bother to visit the site before asking me questions. Now the webfilter sits unplugged from the network... and no one seems to have noticed.

    3. Re:Filtered as a "Hacking" site by fjin · · Score: 1

      Oh, then it works just as it should. I mean, if that denifition of Hacking/Hacker is the right one, because the Hacker is the The Good Guy, Computer Geek, Professional who every corporation wants to have enrolled to them, instead of competition.

      Hacking is a "Good Thing!"

      "...the word HACK is used as a verb to indicate a massive amount of nerd-like effort." -Harley Hahn, A Student's Guide to Unix


      Hacker = A skilled and enthusiastic user of computers. Developer Guru. Good Guy
      Craker = Computer using criminal, possibly with low computer skills. Bad Guy
      Media intentionally uses term Hacker for Crakers - Just for Sensation
      More info: http://www.tuxedo.org/~esr/jargon/html/entry/hacke r.html


      I suggest to to make two categories to filter, Hacker and Cracker sites, and use those right. It means that every IT guy in there is encouraged to read Hacker sites, because it developes their skills - its like getting free studies for them. Actually if someon doesn't read those, that guy doesn't really like to keep his/her job.
      Of course the Cracker sites are then more in line of adult entertainment sites. (not really wanted to spent working time on there, I guess)


      But now this goes a bit off topic ...
    4. Re:Filtered as a "Hacking" site by Hobophile · · Score: 1
      Oh, then it works just as it should. I mean, if that denifition of Hacking/Hacker is the right one, because the Hacker is the The Good Guy, Computer Geek, Professional who every corporation wants to have enrolled to them, instead of competition.

      Oh, knock it off. If you want to pretend 'hacker' denotes the 'good guys', you are certainly entitled to, but don't expect those of us who live outside your magical fairyland to go along with it just because Eric S. Raymond says it's true.

      You know what? For 99% of the population, a hacker is a bad guy and a cracker is something that Nabisco or Ritz makes. And nothing you post on Slashdot is going to change anyone's mind.

      Quite honestly, I am sick of these lame attempts to co-opt the definition of hacker. I think it must be an ego thing. Hackers collectively have something of a dark/daring aura, which has been steadily shaped and reinforced by media portrayals over the past decade. More to the point, hackers are sometimes glamorized by those who really ought to know better: skilled computer professionals and hobbyists.

      The prototypical hacker is a romantic figure, a roguish outlaw, whereas the average computer operator, like the average person, is probably average looking and somewhat dull. So there is a natural tendency for those on the right side of the law to suggest and imply that their activities are just as colorful and interesting as the exploits of hackers, because this imbues them with the hacker characteristics they envy.

      Never mind that in reality, hackers are probably just as uninspiring as their law-abiding brothers, and undoubtedly harbor serious personality defects.

      Learning to accept and like the person you are is part of maturing, and not necessarily an easy one. If you really need a label to pigeonhole yourself with, fine, but at least have the intellectual honesty to claim one that doesn't require you to constantly field specious arguments justifying your choice.

      Moreover, computer professionals should not go around calling themselves hackers for the same reason firemen do not call themselves arsonists: it sends a message that a behavior which is illegal and harmful is condoned and that people who engage in such practices are accepted within the larger, law-abiding community.

  23. Uh, Sun beat you to it for solaris by sjh · · Score: 1
  24. config files by Erpo · · Score: 5, Funny

    This is great for precompiled binaries, but it won't work so well for config files - they're different from system to system. I have a better solution:

    Anyone who wants to make sure their important config files haven't been changed by an intruder can email them to me, and I'll hold on to them for safe keeping. /etc/passwd and /etc/shadow are especially likely to be modified, so I'd recommend sending those right away.

  25. Hey man... by inode_buddha · · Score: 2

    have some Ajax (TM), you can get paranoid without even smoking anything!

    --
    C|N>K
  26. Useless for RPM-Based Distribuitons by Anonymous Coward · · Score: 0

    This is completely redundant for RPM-based distributions. RPM's store MD5 sums and you can get these from the original istallation source. You can verif installed files from an uninstalled RPM.

    1. Re:Useless for RPM-Based Distribuitons by Mnemia · · Score: 4, Interesting

      I'd also mention that it appears to be useless for BSD or Gentoo-like systems as well. BSD because it's built form source and the fingerprints won't always match, and Gentoo because there's already something like this built directly into the system, at least for verifying source tarballs.

      Gentoo checks the md5sum of each tarball against another file containg the known value every time it installs something. The md5sums and the sources are obtained from different servers, so a lot of the risk of trojans is removed. Granted, this doesn't do continuous monitoring like this does, but it helps ensure you don't install something bad. The biggest worry now with this system could be vulnerable if several mirrors are hacked. They're working to replace it with a private-key signed system, which is much better than and md5 based system. The reason being that, that you can verify _who_ created the checksum in addition to that the checksum matches the file.

      So, I'm not sure what the real benefit of this system is. It seems to be duplicating a lot of features that really should be built into the package manager ideally. Maybe someday we'll have package managers that actually watch their packages in realtime w/ strong crypto to make sure things are still good. That would be very cool.

  27. Relief by eyeball · · Score: 3, Funny

    Oh good, the md5 hash for my /sbin/md5 binary matches the signature found on known-goods. Now I can sleep at night. oh, wait...

    --

    _______
    2B1ASK1
  28. Solution by Anonymous Coward · · Score: 0

    They should keep a database of md5 hashes of the database entries.

  29. What about a more targeted approach? by scubacuda · · Score: 2

    What about focusing on files that are routinely replaced with trojans, rootkits, etc.?

    I'm not saying NOT to do the rest of the files, just that these (I'd think) would be the files that you'd want to check FIRST before the rest of the system.

    Perhaps a separate section featuring these targeted areas?

  30. I have to wonder... by Anonymous Coward · · Score: 1, Insightful

    ...how often this will reveal distro's slipstreaming changes into a given version number.

  31. Or even better by Anonymous Coward · · Score: 0

    The known md5 hashes database might get hacked, so your fresh install appears to have been hacked even before you put it on the net! Pesky hackers.

  32. Stars honored at Kennedy Gala Center by Billly+Gates · · Score: 0, Offtopic

    WASHINGTON (AP) -- Academy Award-winning actress Elizabeth Taylor and Grammy-honored singer Paul Simon were among five stars from the world of performing arts being honored Sunday for their career achievements.

    Joining them at a White House reception before a gala at the nearby Kennedy Center for the Performing Arts were actor James Earl Jones, actress-singer-dancer Chita Rivera and conductor James Levine.

    President Bush and first lady Laura Bush planned to attend the 25th annual program where the careers of this year's honorees are celebrated.

    The Kennedy Center's chairman, James A. Johnson, called Taylor "a luminous film actress who for nearly 60 years has been a Hollywood icon treasured by millions throughout the world."

    Taylor, 72, became a child star with "National Velvet" in 1944 and later won Oscars for "Butterfield 8" in 1960 and "Who's Afraid of Virginia Woolf" in 1966.

    More recently, she has helped raise millions of dollars to fight AIDS.

    Simon, 51, was added to the lineup in August when, a few weeks after the official announcement, former Beatle Paul McCartney withdrew because of a personal obligation.

    The Kennedy Center said McCartney would be on the 2003 list and that Simon would have been honored in the future.

    Simon first became known as part of a duo with Art Garfunkel. "Sound of Silence" and "Bridge Over Troubled Water" were among their most popular numbers.

    The songwriter helped shape several generations of young Americans, Johnson said. "More recently, his work has encompassed an awareness of and concern for international art and artists," he said.

    The other honorees are:

    Levine, 49, longtime musical director of the Metropolitan Opera and now leader of the Boston Symphony Orchestra, was credited with bringing "one of the world's foremost opera companies to unsurpassed artistic excellence."

    Rivera, 69, "a musical theater star of the highest magnitude." She is a two-time Tony Award winner.

    Jones, 71, "an actor whose extraordinary range and power have made him an American institution." The voice of the evil Darth Vader in "Star Wars," his long and varied career has produced two Tonys and four Emmys.

    The first Kennedy Center honors in 1978 named singer Marian Anderson, actor and dancer Fred Astaire, choreographer George Balanchine, composer Richard Rodgers and pianist Arthur Rubinstein.

    The program airs December 27 on CBS.

  33. package mangement by hpavc · · Score: 2

    do any of the distributions allow for doing something like this via apt/dpkg?

    likely only handle part of the .rpm/.deb but it seems like something workable for the binaries that are installed.

    --
    members are seeing something, your seeing an ad
  34. Something's wrong here by phr2 · · Score: 5, Insightful
    If we need an external database of md5's to authenticate so many different files, that means that md5's weren't really the right authentication method to begin with. It's better to use digital signatures.

    The fancy way to do that is with an Authenticode-like system for signing files. Distro maintainers would sign the files in their distros, and users could also sign their own files. A simpler way would be to just have a big, signed list of md5's in some file that tripwire checks against. Tripwire would check the signature on the file before believing the md5's in it. Or the list could contain individual signatures per file instead of just hashes.

    A centralized md5 database doesn't feel so right with the free software spirit, which says (legitimate) users could modify the files at any time, or just recompile them with a slightly different compiler, etc.

    1. Re:Something's wrong here by ShmuelP · · Score: 3, Interesting

      And what's to prevent an intruder from adding a trojan to the signature-checking program/library?

      Chicken-and-egg...

      --
      Solution to blink tags: wrap them in another blink tag, with a javascript delay loop, so they cancel each other out
    2. Re:Something's wrong here by ShmuelP · · Score: 3, Informative

      A simpler way would be to just have a big, signed list of md5's in some file that tripwire checks against. Tripwire would check the signature on the file before believing the md5's in it.

      Note: this is exactly what tripwire already does. Except that it also stores other file attributes as well.

      --
      Solution to blink tags: wrap them in another blink tag, with a javascript delay loop, so they cancel each other out
    3. Re:Something's wrong here by scubacuda · · Score: 2
      Hopefully enough other people would review it.

      Perhaps some sort of rating system?

    4. Re:Something's wrong here by phr2 · · Score: 3, Interesting
      Nothing stops an intruder from trojaning the known-good-retrieval program either.

      Basically to be really careful, you have to do the checks offline, on a separate computer, i.e. not relying on executables running on a system that's been exposed to attackers.

      This is the kind of thing that the Palladium hardware should be able to help with. What Microsoft wants to do with it is evil, but it's capable of being used for good purposes too.

    5. Re:Something's wrong here by wirelessbuzzers · · Score: 2

      A MAC is probably a better idea. It's basically a hash that requires a secret key to compute. You could keep a database of known-good MACs on your hard disk, and if you suspect a crack, boot from a CD and verify them. This way you just need a special password to update or verify the database (although if you suspect the database checker has been trojaned, you'd want to boot from a read-only medium to check it). I don't see the point of a centralized database here, especially with so many people rebuilding from source. Oh yeah, and a MAC works on Windows (or, hey, MacOS) too.

      --
      I hereby place the above post in the public domain.
    6. Re:Something's wrong here by Anonymous Coward · · Score: 0

      I saw a variant of this done on a compromised box.... trojaned RPMS of SSH had been installed, so a regular rpm -V ssh didn't catch it. It was only when you checked against the original, gpg-signed RPMs that you realized you had a problem.

    7. Re:Something's wrong here by Anonymous Coward · · Score: 0

      "Perhaps some sort of rating system?"

      You mean, like on slashdot? A few privileged idiots would be allowed to rate the code. The remaining intelligent life forms in the crowd would be modded down to oblivion.

    8. Re:Something's wrong here by eddeye · · Score: 1

      As Authenticode has demonstrated oh so well, no code signing system is perfect. Trojans will still occasionally make their way into pre-signed binaries that get distributed before the problem is discovered. So you'll still need a centralized external database, one that holds signature revocations. Without this, signature schemes aren't very useful.

      Granted, the database would presumably be much smaller than an MD5 checksum since only those binaries incorrectly signed need to be stored. However the need for an external database remains.

      --
      Democracy is two wolves and a sheep voting on lunch.
    9. Re:Something's wrong here by Anonymous Coward · · Score: 0

      Which kind of MAC are you talking about here? The ones made by Apple, or the ones on NICs?

    10. Re:Something's wrong here by Nailer · · Score: 3, Informative

      Every package in the current Red Hat Linux is signed using GPG, and IIRC this has been the case for a few years now. Most other Linux distros also sign their packages.

    11. Re:Something's wrong here by wirelessbuzzers · · Score: 2, Informative

      MAC == Message Authentication Code. It's basically a hash with a secret key. Some good ones (in addition to algorithms written as MACs) are Encryption_Key(Hash(File)) and Hash(Key1,File,Key2)

      --
      I hereby place the above post in the public domain.
  35. Breakfast by Anonymous Coward · · Score: 0

    club!

  36. Debian / debsums by zsazsa · · Score: 5, Informative

    Debian has this built into the OS with debsums.

    It does require a legit dpkg database (and md5sum, and the debsums program itself...) but it's a nice tool.

    1. Re:Debian / debsums by ecloud · · Score: 2

      And does it come with scripts to automatically check everything against the debsums database and email discrepancies like integrit does?

      They could use the debsums to "prime" the integrit db at installation time, so there is not that window of opportunity to trojan the binaries between the installation and the first integrit scan.

      (I use integrit on debian but was not aware of this debsums thing. Sounds cool.)

  37. Problems with patched OSes / custom builds by Turambar · · Score: 2, Interesting

    This sounds nice, but I see problems as installs move from the "100% installed code" to the "patch of the week" versions. Especially when you have to do custom builds of the software.

    Are you running BIND, Apache, wu-ftpd, or (shudder) Sendmail? If you are, your system won't be entirely in their shiny dbase for more than a month (probably more like a week) after you install. And if _you_ don't update it, someone will be kind enough to "update" some file for you soon enough...

    As a test, I checked /bin/ps on a few local systems. (If you don't know why I started with this one, you will. Probably sooner than you'd wish to.)

    From the dbase:

    RH 7.1 - MD5: ac0b58050deb21db1ed701277521320b
    RH 7.3 - MD5: 6d3abf4efc9235e4eb5dc540d61d42fa

    My systems:

    #1 - MD5: ac0b58050deb21db1ed701277521320b
    #2 - MD5: ac0b58050deb21db1ed701277521320b
    #3 - MD5: 9724525265900e5f9020de3b431425b1
    #4 - MD5: 881c7af31f6f447e29820fb73dc1dd9a
    #5 - MD5: 6d3abf4efc9235e4eb5dc540d61d42fa

    Binary compatibility is seen for systems 1, 2, and 5, but the RH7.2 system (#4) doesn't match. System #3 is a Gentoo system, which is probably the most secure, but also the least likely to ever match with their list. I guess that's the peril of compiling your own code.

    --

    Turambar
    ------------------------------
    Common sense is not so common.
    --Voltaire
  38. Use BITZI too! by aminorex · · Score: 3, Informative

    I'd rather see everyone using bitzi.com, since it's
    goal is to gather metadata for *every* file in the
    universe, and keep the data free, supported by a
    related business model (and a viable, sustainable
    support mechanism is GOOD), but I support this
    project too, because choice and freedom are goods.
    Therefore, I urge everyone to submit metadata
    to both projects.

    If you only submit to one, however, please submit
    to bitzi, because it provides an automation API,
    and uses better hashes.

    Note that I have no affiliation with the Bitzi company.

    --
    -I like my women like I like my tea: green-
  39. Another Resource by Taim · · Score: 5, Informative

    NIST (The National Institute of Standards and Technology) currently has a program to provide this service, though largely focused on Microsoft OSes and associated apps. It may be found here: National Software Reference Library

    The complete list of software they've checksummed can be found here: Software Listing or you can use their search engine if you're looking for a specific application here: Search Engine

  40. Needs more... by j3110 · · Score: 2

    Something to combat md5sum itself from being cracked. Perhaps a statically compiled binary that you can download with the program of your choice. Then rootkits would have to modify every program that can download a file, or the kernel. The best system would be a nice bootable CD that would scan all known file system types for files that have md5 sums of known bad files, not search for files and make sure they have a md5 sum of a good file. Then root kits will have to rely on a compiler or append random bytes to the end of the files.

    Well this gets so complicated that by the time you've thought it all out, you really need virus scanner technology to thwart root kits. Maybe a kernel patch could run a virus scan on executable files? It would be quite difficult to tamper with the actual running kernel in memory without causing the system to lock or reboot, thus giving away that the system is being tampered with. Assuming root kits are distributed in source form, you'll need heuristic scanning to find them. This means false positives and manual overides by the system administrator.

    --
    Karma Clown
  41. Combination solution. by pr0ntab · · Score: 3, Interesting

    Ideally, a simple tool should be developed that does the following:

    Compare the MD5sums of critical files to a recent known "snapshot" of the system on RO media, which only indexes files that were changed and reconciled. Perhaps there is a list of files of which only certain byte ranges (perhaps just executable ELF sections) are checked, are some are omitted. (Other slashdotters mention caches/timestamps in certain relevant files that screw up checksums). You would have a whitelist (files which must match), then a graylist (files which meet byte-range criteria), and perhaps even a blacklist that prevents files that would normally be flagged to be ignored.

    In checking full file checksums, those not explicitly listed above would fallback to a check using a HTTP get request conforming to this helpful document these guys have offered.

    And to those who were asking about other distributions: they are looking for people willing to work with them to add new distros/architectures to their database.

    --
    Fuck Beta. Fuck Dice
  42. NIST NSRL (was Re:What about Windows OS?) by Taim · · Score: 1

    (Copied from my earlier post)

    NIST (The National Institute of Standards and Technology) currently has a program to provide this service, though largely focused on Microsoft OSes and associated apps. It may be found here: National Software Reference Library

    The complete list of software they've checksummed can be found here: Software Listing or you can use their search engine if you're looking for a specific application here: Search Engine

  43. I would'v replaced md5 itself - right ? by alex733 · · Score: 1

    I had my Linux 6.0 broken into and ls binary was replaced together with md5 checksum generator so it was really hard for me to find out.

    1. Re:I would'v replaced md5 itself - right ? by Anonymous Coward · · Score: 0

      You should downgrade to Linux 2.4, that would solve a lot of problems, like non-existing security in non-existing software.

  44. Bleah by digitaltraveller · · Score: 4, Informative

    NIST does this too. For a different reason though. To help forensic examiners eliminate non-important data in a suspect's computer. They use 4 different hash algorithms (MD5, SHA-1, CRC32, and one other), so good luck finding a collision for all 4. They were giving out copies of the CD-hashdb at an InfoSec conference I was at recently.

  45. Terrorrists use md5 :) by Anonymous Coward · · Score: 0

    Cheers

  46. Kids these days... by Curl+E · · Score: 1
    --
    Backups are for wimps. Real men post their data in comments and have slashdot mirror it
  47. SE Linux: An ounce of prevention vs pound of cure by Tracy+Reed · · Score: 1

    Had you been running SE Linux your files would not have been modified in the first place and a good audit trail would tell you what they attempted to modify.

  48. MD5 checksums for media files by Anonymous Coward · · Score: 0

    How about this kind of database for media files for P2P networks? P2P clients could check the file to see if it was "genuine" or an RIAA-induced dummy file.

  49. Excellent! by defile · · Score: 4, Interesting

    Now I can add a compromised md5sum to my rootkit which uses values from this site.

    Go team!

    1. Re:Excellent! by noahm · · Score: 2
      Now I can add a compromised md5sum to my rootkit which uses values from this site.

      Come on. This is a database of known good md5 checksums. It's not a database of known good output from some program. md5sum is no less vulnerable to rootkits than any other program on the system, but that hardly makes this a useless database.

      noah

  50. "False" senses of security by Hizonner · · Score: 5, Insightful
    Spoken like a true second-year student.

    The reality of the matter is that, while it certainly would be possible for somebody to gag a machine to evade all your wascally checksumming tricks, they frequently don't do so. And when they do it, there's the usual arms-race lag between the time when a new method of checking comes out and when they update their tools to evade it. And there's a cost to them for each defense they evade; if you want to avoid every defense you ever hear of, you basically have to roll your own rootkits, which is a huge time investment.

    And a kiddie who's out there collecting hundreds of boxes has no particular incentive to be anal about holding onto yours.

    ... and everybody makes mistakes. Yes, you're right, looking at checksums gives you absolutely no security against omniscient adversaries with infinite resources. Luckily, real adversaries are not omniscient and have limited resources. Yes, you'll even miss some of the real adversaries. You'll also catch some. Probably a lot. Nothing is perfect. Deal with it.

    Fucking pompous amateurs.

    1. Re:"False" senses of security by Anonymous Coward · · Score: 1, Funny

      All they have to do is install a bloody kernel module that, *gasp* returns good versions of the binaries after it loads. That stops all checksumming.

      The same exact argument applies to the bad guys as applies to the good ones; good guys have limited intelligence and time, and you only have to evade most of them.

      You must be a third-year student.

    2. Re:"False" senses of security by greenrd · · Score: 2
      Huh, you must be a high school student! Don't you know that the kernel itself can be compromised? What, do you think it's got some kind of "magic wall" around it that makes it invulnerable?

      (And no, Virginia, memory protection != invulnerable.)

    3. Re:"False" senses of security by Anonymous Coward · · Score: 2, Insightful

      He may be a second year student, but he's right. You don't check a potentially compromised system with itself! Mount the drive on a trusted system and check it there. This isn't even hard. If you suspect a breakin, schedule a half-hour of downtime and boot from a trusted CD, like Knoppix or the live filesystem that comes with Slackware, and check your HD from there. Simple!

    4. Re:"False" senses of security by yerricde · · Score: 2, Insightful

      If you suspect a breakin, schedule a half-hour of downtime and boot from a trusted CD, like Knoppix or the live filesystem that comes with Slackware, and check your HD from there.

      And if the BIOS is trojaned?

      --
      Will I retire or break 10K?
    5. Re:"False" senses of security by Anonymous Coward · · Score: 0

      Fucking pompous amateurs.

      Isn't that a pr0n site?

    6. Re:"False" senses of security by Alan+Shutko · · Score: 2

      The reality of the matter is that, while it certainly would be possible for somebody to gag a machine to evade all your wascally checksumming tricks, they frequently don't do so.

      No kidding. I still haven't even seen people updating the RPM md5sums, and you'd think that's something that rootkits would like to do.

      Sure, if you know your system has been compromised, you want to take it down and do a check with known-safe binaries, kernel, etc. But in the real world you can't do that daily on a production box, so checksumming on a live box is a reasonable solution.

    7. Re:"False" senses of security by Anonymous Coward · · Score: 0

      LOL. I thought your comment was hilarious.

    8. Re:"False" senses of security by Anonymous Coward · · Score: 0
      Spoken like a true second-year student.

      Hah, if he's a second-year student you're a pompous ass who doesn't even understand basic risk/benefit. Heck your last paragraph pretty much agrees with the original poster that there isn't much you can do.

      You're ego is far too large.

  51. Er, rpm -V? by SlashChick · · Score: 5, Informative

    For Red Hat-based systems, at least, rpm -V will do pretty much exactly what you're looking for.

    From the man page for rpm:

    The general form of an rpm verify command is

    rpm {-V|--verify} [select-options] [--nodeps] [--nofiles] [--nomd5] [--noscripts]

    Verifying a package compares information about the installed files in the package with
    information about the files taken from the package metadata stored in the rpm database. Among other things, verifying compares the size, MD5 sum, permissions, type, owner and group of each file. Any discrepencies are displayed. ... The (mnemonically emBoldened) character denotes failure of the corresponding --verify test:

    S file Size differs

    M Mode differs (includes permissions and file type)

    5 MD5 sum differs

    D Device major/minor number mis-match

    L readLink(2) path mis-match

    U User ownership differs

    G Group ownership differs

    T mTime differs


    So while that's a bit cryptic, a shell script run once every x days (30? 14?) should tell you what files have changed. All you would have to do is run rpm -qa to grab a list of the packages in your system, and then loop through the list and run rpm -V for each RPM returned.

    For instance, running rpm -V on two common packages, Apache and PHP, shows me the following:
    # rpm -V php
    S.5....T c /etc/php.ini

    (php.ini has changed... which in this case means I've tweaked some of PHP's default settings.)

    # rpm -V apache
    S.5....T c /etc/httpd/conf/httpd.conf
    missing /var/www/html/index.html
    missing /var/www/html/poweredby.png

    (Okay, I've changed httpd.conf, again pretty much a given, and I've removed a couple of the default files.)

    I guess this website seems pretty unneeded to me. Granted, the above is just for RPM-based systems, but I'm sure Debian and ports have similar options. And to the people who have installed from source and say "What about me?", I say, first, never underestimate the power of a package management system, and second, check out CheckInstall, which allows you to create an RPM or DEB just by saying "checkinstall" instead of "make install". If you feel you must compile from source, checkinstall is a necessity! Using checkinstall gives you all the benefits of a package management system while still allowing for the flexibility that compiling from source provides.

    Between checkinstall and up2date, I'm a very happy Red Hat customer. I just wish more people knew about some of the truly powerful things in package management systems (such as the verify command detailed above.) Package management systems are there for a reason. Use them! :)

    1. Re:Er, rpm -V? by Anonymous Coward · · Score: 0

      just rem to check the MD5 of rpm prior to using it :)

    2. Re:Er, rpm -V? by fasuin · · Score: 1
      Indeed
      rpm -Va
      saved me a lot of trouble...
    3. Re:Er, rpm -V? by Rufty · · Score: 1

      What is the Debian equivalent? debsums is what I use, but it's not quite the same...

      --
      Red to red, black to black. Switch it on, but stand well back.
    4. Re:Er, rpm -V? by Nicolas+MONNET · · Score: 3, Insightful

      Usually crackers don't think of altering the RPM database containing the MD5 hashes -- it's happened to me during a Bind compromise --, but there's nothing that would prevent them from doing so ... so you need an external database.

    5. Re:Er, rpm -V? by g3rr!t · · Score: 1

      Instead of actually installing the whole system (as they seem to do) to get out the MD5s, isn't it possible (and easier) to extract the info from the rpm files themselves (Linux-only I guess). I think it would save a lot of work, but of course then you don't have SHA-1.


      # rpm -qp --dump xfstt-1.1-414.i386.rpm
      /etc/init.d/xfstt 1488 1017085236 401aebc9f862938cc232003baefb4244 0100755 root root 1 0 0 X
      /usr/X11R6/bin/xfstt 129380 1017085236 ce4f7d284c0026fc0c712847ab0d7cb2 0100755 root root 0 0 0 X
      ...

      you get the idea.

      Perhaps the time spared could be used to put the distro's update RPMs in there as well, otherwise large bits of my system will appear compromised.

    6. Re:Er, rpm -V? by prefect42 · · Score: 1

      Are you being intentionally naive to be forgetting that it's comparing those files with your local (compromised) database?

      --

      jh

    7. Re:Er, rpm -V? by D0wnsp0ut · · Score: 3, Informative
      For Red Hat-based systems, at least, rpm -V will do pretty much exactly what you're looking for.

      For those who pointed out that the RPM database is a local database, remember, you can get those MD5 hashes from 2 other sources:

      • your installation medium (CD)
      • from Red Hat's web site itself

      Of course, using the web site is going to be a lot more labor intensive, but it is available. Writing a script to compare hashes computed using RPMs from the CD image and comparing them to your installed binaries should be a piece of cake (using the --dump option to -ql).

      --
      "Those who would sacrifice liberty for security deserve neither!"
    8. Re:Er, rpm -V? by Anonymous Coward · · Score: 0

      Are you being intentionally naive to be forgetting that you can backup your rpm database and verify against it? You can also verif against uninstalled RPM's.

  52. Prebinding on OS X breaks checksums by MotownAvi · · Score: 2, Interesting

    The problem with this is that it assumes that binaries never legitimately change. That is false in Mac OS X. The Mach-O file format allows for "pre-binding", where the linker tries to resolve imported functions and data before the app is loaded, and, if successful, writes the offsets to the file.

    I'm not familiar with the Mach-O file format, but I'd guess that the changes are confined to a small part of the file. But if you could just checksum the code sections, that might work.

    On the other hand, talking about libraries makes me think. Don't forget to check the libraries. If I trojan libc, I'll be getting all kinds of control while leaving the program binaries unmodified.

    rlwimi

  53. Weekends + Slashbot == Deadspace by Anonymous Coward · · Score: 0

    'nuff said

  54. how does this work? by thogard · · Score: 5, Funny

    Ok, lets see if I've been hacked...
    $ md5 /dev/null
    d41d8cd98f00b204e9800998ecf8427e

    So I put d41d8cd98f00b204e9800998ecf8427e in the search engine and it came up with 560 hits (compared with 3170 from google).

    Now it appears that someone replaced my /dev/null with /private/var/servermgrd/servermgr_dirserv.lock from Mac OS X. What a bummer and its a brand new system too...

    Does the database have a way to flag files as being bad? Sa

    When I put in 3ac9bc346d736b4a51d676faa2a08a57
    I should get back:
    *** Trojaned openssh-3.4p1.tar.gz ****

    One thing that could make this useful would be a dns like interface...
    host 3ac9bc346d736b4a51d676faa2a08a57.knowngoods.org || echo bad

    1. Re:how does this work? by Anonymous Coward · · Score: 0

      I hope you are kidding.

    2. Re:how does this work? by Anonymous Coward · · Score: 1, Informative

      you're a retard.

      how about you search /dev/null, and get the good md5 then compare to yours, yours is diff, you've been hacked

    3. Re:how does this work? by DJPenguin · · Score: 2

      >When I put in 3ac9bc346d736b4a51d676faa2a08a57
      I should get back:
      *** Trojaned openssh-3.4p1.tar.gz ****

      How the bloody hell will it know that? Just changing a couple of bytes in a file will completely change the checksum. There's no way of telling what the file _should_ be from the checksum.

    4. Re:how does this work? by ntp · · Score: 1

      Why are you md5summing device nodes? The contents of them are usually always different.

      Now, if someone replaces /dev/null with a file to capture all the program "junk", or replacing /dev/random with a file of known (unrandom) binary data, that would be interesting.

      But md5sums won't help.

      --
      I control the time!
    5. Re:how does this work? by Simon+Kongshoj · · Score: 2

      I think you're misunderstanding how MD5 and SHA-1 work. These are one-way hash algorithms, meaning that there's no way of identifying what d41d8cd98f00b204e9800998ecf8427e was originally. The algorithm doesn't allow for a "decrypt" function at all.

      The method of operation is that if you hash /dev/null (probably not the #1 trojan target though) into d41d8cd98f00b204e9800998ecf8427e, you can store that value somewhere safe (eg. on a secured remote logserver or on read-only media). Then, if /dev/null gets trojaned, a file monitoring system (like AIDE, integrit or TripWire), when running its checks, will notice that the current hash is different from the original one you've stored securely.

      Also, hashes are not unique. It's not impossible that your /dev/null hashes to the same value as some other file on another OS. Or to another file on your own system. It's very unlikely that someone can make a trojan that lets the file hash to the same value as the clean version, the slightest change to the file will result in a completely different hash value.

      So your proposition that you should be able to put in a hash value and get a *** Trojaned openssh-3.4p1.tar.gz **** response is in fact technically impossible. The system has no idea where that hash value came from. What you could do is retrieve a hash from the database, and compare it to the one your md5 program generates. Making a script to do that shouldn't be rocket science, except in the case of extremely simple rockets.

      Good reading for understanding one-way hashes (they're also used for storing passwords on Linux and UNIX systems, among other things): http://www.ch280.thinkquest.hostcenter.ch/crypto/o newaye.html

      --
      Six sick .sigs, the Number of the Beast!
    6. Re:how does this work? by njyoder · · Score: 0


      Ok, lets see if I've been hacked...
      $ md5 /dev/null
      d41d8cd98f00b204e9800998ecf8427e

      So I put d41d8cd98f00b204e9800998ecf8427e in the search engine and it came up with 560 hits (compared with 3170 from google).


      That's because d41d8cd98f00b204e9800998ecf8427e is the md5 of an empty file, and not suprisingly there are a lot of empty files.

    7. Re:how does this work? by thogard · · Score: 2

      3ac9bc346d736b4a51d676faa2a08a57 is the md5 a trojaned package that managed to make it to several mirrors. It was downloaded by thousands of people and is known bad.

  55. Solaris Fingerprint Database by nbvb · · Score: 5, Informative

    Sun already provides this for Solaris.

    http://sunsolve.Sun.COM/pub-cgi/fileFingerprints .p l

    It contains information for:

    Operating Systems

    Solaris SPARC - 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.5.1, 2.6, Solaris 7 and Solaris 8
    Solaris x86 - 2.1, 2.4, 2.5, 2.5.1, 2.6, Solaris 7 and Solaris 8
    Solaris PPC - 2.5.1
    Trusted Solaris SPARC - 2.5, 2.5.1 and 7
    Trusted Solaris 7 x86
    Most CDs bundled with Solaris 2.6 and later.

    Patches

    Nearly all released Solaris patches, including all SunSolve CDs to date. (4.0.11)
    All Solaris 2.6/7 Maintenance updates.
    All patches available from SunSolve.

    Unbundled Products

    Around 150 CDs with unbundled products are included. If you are missing any particular product, please feel free to send email and we will try to include it as soon as possible.

  56. don't forget the ip address by martin-boundary · · Score: 1

    Those who want to give you their files for safekeeping should not forget to include their ip addresses, so that you can contact them in case of a problem...

    1. Re:don't forget the ip address by Ben+Hutchings · · Score: 3, Funny

      Will send you the files later. My address is 192.168.1.1.

    2. Re:don't forget the ip address by linuxelf · · Score: 1

      Hey, that's MY IP!

      Damn hackers.

      --
      - "That's just the kind of fuzzy-headed liberal thinking that leads to being eaten."
  57. This is what MACs are for... by wirelessbuzzers · · Score: 2

    A MAC is like a hash with a secret key; the hash depends on both the file and the key. That way you can keep a copy of the database locally and an attacker can't change it to cover his tracks like he could an MD5 database if you kept it locally (of course he could change the verify program if that were local...but probably not without changing the file size).

    This would allow for protection of files not in an online database (compiled from source, for example) using only local files.

    You can use a block cipher chaining mode (don't remember which one) as a MAC, or use say AES_k(MD5(file)), or, IIRC you can use MD5(k_1 file k_2) where k_1 and k_2 are different secret keys (check this out before using, lots of constructions like this are totally insecure), or you can use something designed as a MAC (eg RIPEMD). Any of these could be run from a shell script to quickly verify all binaries (or whatever you were protecting).

    --
    I hereby place the above post in the public domain.
    1. Re:This is what MACs are for... by Anonymous Coward · · Score: 0

      Why do people use the SAME acronyms over and over.. MAC is already taken, ya know for almost a couple of decades!

  58. Personally.. by shepd · · Score: 3, Interesting

    I like this utility. It's pretty handy, although probably not as effective as this database, unless you're running slackware, or another popular, but undatabased distro. :-)

    --
    If you could be told what you can see or read, then it follows that you could be told what to say or think - BoC
    1. Re:Personally.. by Anonymous Coward · · Score: 0

      This project aims at doing the opposite...
      (ie : catalog only checksums for known bad files)
      http://rootkid.cyberabuse.org/

    2. Re:Personally.. by Anonymous Coward · · Score: 0
    3. Re:Personally.. by shepd · · Score: 1

      That doesn't look at all like chkrootkit. It appears to be a competing project. If it's good or not I can't say -- I've never used it.

      --
      If you could be told what you can see or read, then it follows that you could be told what to say or think - BoC
  59. Linux Debian r5? by Pretzalzz · · Score: 1

    What release exactly does Linux Debian r5 refer to? Debian numbers their releases #.# with security updates appended with r#. Are they refering to 2.2r5, which is Potato with known security holes[since Potato's last security release was 2.2r7], not exactly what paranoid people have on their system[and Woody isn't even at r1]. And with arch are the md5sums supposed to be for since presumably every arch would have a different md5sum[you would assume i386, but nothing says for sure on the site]?

  60. What about AIDE? by strobert · · Score: 4, Interesting

    the poster mentions Tripwaire, but what about AIDE?
    In additon to being a proper Open Source project, it allows for features that (last I heard at any rate) tripwire doesn't support, like a centralized checksum DB. That feature alone makes the tool superior (IMHO). For example it makes the verification process a lot nicer (intruder can't courrpt the local md5sum's because there aren't any).

  61. ROFLMAO (n/t) by Anonymous Coward · · Score: 0

    (n/t)

  62. Re:CONGRATULATIONS by Anonymous Coward · · Score: 0

    sir that is a sick web sight and you should be illegal for linking to it! what kind of a world is this anyway. that sort of material is sick and wrong and should not be a part of a decent world! bess armstrong was in jaws three.

  63. Versions? by tconnors · · Score: 4, Insightful

    OK - debian seemed to have one version there - r5, whatever that is. How does it handle apt-get upgrades? If r5 is reffering to something like stable, then even stable changes over time (contrary to what some poeple think ;-). So do they take the checksums from a machine that was just apt-get upgraded last night, or what? If they mean an actual yearly or half yearly release, who on this world does not apt-get upgrade when there is a security fix released? So your system sure as hell aint going to match theirs.

    Then I can't imagine how you would be able to automate this, so it checks all the binaries in /bin /sbin, /usr/sbin etc - do they have some alternative to HTTP for their database?

    Doesn't seem overly useful to me....

    1. Re:Versions? by Anonymous Coward · · Score: 0

      Versions? Good point. The only file sets these checksums are going to match for me is the CD and a fresh install. I don't consider myself a *nix expert, but I have upgraded kernels, desktop managers, Apache, and applied patches.

      You need to have checksums for a binary's version & build. When sources are available, you need the checksums for those as well.

      It is a good start. I'd consider this to be in pre version 1.0 stage.

  64. Straightforward solution by zunger · · Score: 4, Interesting

    I found a fairly straightforward solution to this problem. I wrote a small wrapper around a known-good md5 function, compiled it and placed it in a nonstandard location. (Thus it doesn't have a widely recognizeable filesize or md5 to be detected and stomped) Then I wrote a simple shell script which checksums various critical files on a regular basis and tests the MD5 values against a record it keeps, again in a private location. Whenver a change happens, it sets off alarm bells all over the place, both in syslogs and on the console.

    On top of this I stuck in one small bit of shell script that allowed me to modify a file myself without setting off alarms - it simply recalculated the md5 value and updated the record files.

    I suppose this is theoretically vulnerable to an attacker reading through /etc/crontab, then checking each local shell script for a sensor and carefully overwriting my own nonstandard code - but if any attacker has that much free time on his hands, there's a limit to how much of a sensor I can implement.

    The nice thing about this code is that it also implicitly tests for corruption of critical files after fsck-triggering events like kernel panics or total power failures. (That's actually what prompted its initial writing) And it's remarkably trivial to implement, even more so if one simply copies an off-the-shelf md5 binary rather than compiling one's own wrapper.

  65. Mod parent up! by Anonymous Coward · · Score: 0

    I checked various executable files on OS X 10.2.2 6F21 and got checksums different from the "known good" ones.

  66. Re:IN SOVIET RUSSIA by Anonymous Coward · · Score: 0

    In Soviet Russia... we can buy a new car for $2.

  67. only add entries by Anonymous Coward · · Score: 0

    for that reason, I would add entries of my comprimised binaries instead of altering the existing ones.

    1. Re:only add entries by BitHive · · Score: 2
      You are stupid as hell. As soon as their stored hash doesn't match, it looks like you've been compromised, and if enough people get alarm bells going off, then it would be pretty obvious that the hash changed, not everyone's binaries. Sure, you could add new hashes for new binaries, but what are you going to call it? /bin/rootkit?

      Fuckass.

    2. Re:only add entries by Anonymous Coward · · Score: 0

      Dude,

      You replied to the wrong post, meaning, in this case, that your abusive language is directed at someone who agrees with you.

      Talk about *&^%asses!

      --AC

  68. TROLL ALERT by Anonymous Coward · · Score: 0

    External database?

    Um...no matter what verifications you use, you need to have a database of them. external has no meaning here; it could be on a disk, cd, diskette, other partition, data server, etc

  69. How they check sum script files? by mentin · · Score: 2
    What about user/machine specific or configurable scripts? Those that are created during setup, and can't be check-summed.

    These files can contain trojan too, and most "modern" trojans are written in some interpreted script, not in C. How about detecting this?

    --
    MSDOS: 20+ years without remote hole in the default install
  70. Re:Can you imagine... by Anonymous Coward · · Score: 0

    You forgot handing out free sandwiches while not wearing any pants.

  71. Re:Can you imagine... by Anonymous Coward · · Score: 0

    2. ???
    3. Profit!

  72. Re:Can you imagine... by Anonymous Coward · · Score: 0

    Our company's slogan is "Give us money, we'll do stuff"

  73. No OpenBSD Yet by ksw2 · · Score: 2

    I was dissappointed to see no OpenBSD database. :-(

  74. Who watches the watchers? by Anonymous Coward · · Score: 0

    Simple. Say RH has md5 sums on their rpms. Say this site shows 'em too.

    If someone attempts to fux0r some software, either site will show it.

    If someone fux0rs one site, the other will show a difference, sounding an alarm.

    Of course, one could hit the software before it's released at all from the vendor, but this wasn't
    really meant to protect from that.

    In short, this is a novel idea to have more eyes watching. More eyes == good.

  75. Source distros! by PigleT · · Score: 3, Insightful

    "Doesn't seem overly useful to me...."

    Nor to me, for a different reason: what about those of us with CFLAGS= set to various strange funky optimizations in Gentoo? What about the Ports system in FreeBSD, similarly?

    This thing does not have the potential to spread to all distributions or all unixen.

    What about historical storage? Are they really proposing to store an md5sum for /bin/* /usr/bin/* for all packages for all distributions for all releases, or when do older things get purged?

    Seems mad to me. Would be better off staying with AIDE instead, IMO.

    --
    ~Tim
    --
    .|` Clouds cross the black moonlight,
    Rushing on down to the circle of the turn
  76. free service by Erpo · · Score: 2

    Those who want to give you their files for safekeeping should not forget to include their ip addresses, so that you can contact them in case of a problem...

    Sounds like a good idea, but that's all you can get for free. I have limited space and resources -- I can only keep track of so many password files and IP addresses at a time at no cost.

    Erpo's "Bronze Tier" security service is available for $10 per month, and for that modest fee you can have the privilege of running Erpo Inc.'s backdoord, "The most advanced intrusion detection software on the planet." (Note, UID 0 and internet access necessary for security functions to operate effectively.) For those willing to spend $50/month for a little more peace of mind, Erpo's "Silver Tier" plus package includes eight (count them, eight) bytes of space on my hard drive for a cleartext backup of your root password. Sometimes, however, that just isn't enough. For those that need the ultimate in security, Erpo Inc. offers the most comprehensive option available anywhere: the super duper "Gold Tier" uber-premium technoblaster package with cherries on top. Clients in this elite class of service have the extreme honor of keeping their servers on-site in a musty corner of my basement (T3 and battery backup provided by client, some restrictions may apply, void where prohibited). For only $100/month, I will personally look through all of your sensitive, private data to make sure it has not been compromised by an attacker. It doesn't get any better than this, folks. Sign up today at www.er....

    What? Fraud? Don't be silly.

  77. rpm = MD5 + GPG by Anonymous Coward · · Score: 1, Insightful

    That's why rpms are not only hashed but signed (unlike this database)

    Good luck faking the signature.

  78. Another Way: Compare two computers by seschmi · · Score: 1

    A problem with the known-good-database is that it may not contain the distribution you actually use (e.g. if you use an updated SuSE 6.4, you will never know if your /bin/ls is that of SuSE 7.2). If you have two boxes with the same distribution, and you are quite sure, that they have not been hacked the same way, you can easily compare the md5sums of those two.

  79. Good for individuals or small busi's but for large by Anonymous Coward · · Score: 0

    It seems counter-intuitive to enforce a local security matter to an external interface source.

    Larger business have to overcome the security risk of false positives (what if an obscure applications hash changed?).

    Also what authentication system protects man-in-the-middle? SSL? What integrity system protects this single point of failure? Why don't I just use that?

    Seems like a lot of trust (too much?) is required on the users part.

  80. Use Knoppix to avoid compromised /bin/md5 by Anonymous Coward · · Score: 0

    Create a Knoppix (http://www.knoppix.org) CD that

    1. Determines checksums for everything on your system (including the BIOS), then

    2. Burns a new Knoppix CD with the checksums.

  81. Is it possible? by Anonymous Coward · · Score: 0

    Is there a way to embed a valid checksum/digest inside a file? I mean if you calculate a checksum for a given file and add that checksum at the end of the file, the new file checksum value would then be invalid (caused by the presence of the checksum at the end)...

  82. People would probably be suspicious anyway, by Anonymous Coward · · Score: 0

    Aren't MD5sums 1024-bit? (This may be incorrect. Check it if you like, and tell me I'm an idiot if I'm wrong). You said yourself that you didn't know how much junk. I daresay that's quite a bit, to put those sums in the same place.

    Of course, I could be utterly mistaken. Boo me.

    1. Re:People would probably be suspicious anyway, by Scottaroo · · Score: 1

      Sorry, you are an idiot.

      The MD5 hashes are 128 bits. Since they are one-way, it is easy to generate the hash from the message, but impossible to generate a message that matches a give hash. The only way to do it would be to randomly generate messages until you found one that gave the hash that you were looking for. Good luck.

      Not stictly impossible, just really improbable.

      --
      ----------
      If your answer is Microsoft, you obviously didn't understand the question.
    2. Re:People would probably be suspicious anyway, by Anonymous Coward · · Score: 0

      Prove it.

  83. Checksummers on Crack? by Anonymous Coward · · Score: 0

    From their list:
    0327. Crack for OS/2 - 4.1 - UNK -- Unknown

    Do they checksum cracker tools? Why?

    1. Re:Checksummers on Crack? by Taim · · Score: 1

      From the site:

      The National Software Reference Library (NSRL) is designed to collect software from various sources and incorporate file profiles computed from this software into a Reference Data Set (RDS) of information. The RDS can be used by law enforcement, government, and industry organizations to review files on a computer by matching file profiles in the RDS. This will help alleviate much of the effort involved in determining which files are important as evidence on computers or file systems that have been seized as part of criminal investigations.

      This resource is about eliminating the need to evaluate files in the case of an investigation. For this reason, anything that can be identified is of value. In my office, we're taking the database and flagging "benign" and "malignent" signatures to allow us to process a filesystem and have a reasonable idea of what needs to be looked at manually. While this is intended for criminal investigations, it's purchase is currently unrestricted and redistribution is encouraged. While it may not be ideal for evaluating a potentially cracked system, it certainly is a useful tool to have at ones disposal.

  84. $0.02 by zanderredux · · Score: 1

    Well, one could embed to the hash the hashes of compilers and sources used. And once the final hash is built, sign it with a public encrpytion key to ensure that the hash is good. But I think that there is no easy/feasible way to ensure that files are good. Just guessing...

  85. Trojan your BIOS? by yerricde · · Score: 1

    The only secure way to use the verification tool is to boot from a readonly media and run the tool from there.

    The black hats have trojaned, and will continue to trojan, a machine's flash BIOS.

    --
    Will I retire or break 10K?
    1. Re:Trojan your BIOS? by kasperd · · Score: 2

      The black hats have trojaned, and will continue to trojan, a machine's flash BIOS.

      It is IMHO a bug on the MOBO if the BIOS by default can be flashed, it should be required at least to move a jumper to flash it. Another interesting approach would be to have a MOBO with two flash BIOSes, only one is writable, and the other is the one being used during boot. The roles of the two can be switched by a jumper.

      --

      Do you care about the security of your wireless mouse?
  86. What about gentoo? by 42forty-two42 · · Score: 1

    Do you list the gentoo binaries there, too? :)

  87. Known-good MD5 database - other uses by Zone-MR · · Score: 1

    A while back I was attempting to brute force the MD5 hash of a forgotten password, and when I read the slashdot story about this database, an idea occured to me.

    Currently on a fast PC, it takes approximatly 400 days to test an MD5 hash for collisions with strings up to 8 days in length, and using the charset a-z,A-Z,0-9.

    What is these were precomputed and stored in an indexed, searchable database. It would take a while to compile such a DB, but with the aid of parallell proccessing, or perhaps a distributed broject similar to SETI@home the time could be reduced.

    If this was created, people could just enter an MD5 hash, and in a fraction of a second get back a list of known collisions. Makes you want to rethink MD5 passwords for security.

    Has something like this been attempted before? Is something like this even possible (I imagine storage space could be forbidding)?

    1. Re:Known-good MD5 database - other uses by kobaz · · Score: 1

      ANY encrypted password hash is only as secure as the machine/environment its in. This is why shadow passwords are very nice, the world doesn't have access to your password hashes. Same with password hashes stored in a backend database.

      If an outsider can get access to your password hashes, there are other problems to be delt with than the possibility of a distributed brute force md5 cataloging network.

      I do agree though that with faster computers hashed passwords will be more quickly found, and especially with distributed applications. The future is probebly longer and more complex hashes to compete with the growing speed of computers.

      --

      The goal of computer science is to build something that will last at least until we've finished building it.
  88. Filepedia by mikey573 · · Score: 1

    I use a database of MD5 hashes to match my hard drive's files against backups. I tried to make a Sourceforge project out of it, but lost interest because of the trouble with polymorphic files, and especially the trouble of matching all files in non-standard installation archives (damn setup.exe files).

    I named the project Filepedia originally though because I thought it would be nice to have an online encyclopedia that could tell you information about a file based on its MD5. Still doable...

  89. Did I miss the point... by Anonymous Coward · · Score: 0

    So, mathematically and cryptographically sound hashing alogirthm used to provide a database of hashes from persons unknown using a plaintext transfer protocol with no data integrity... or have I missed the point again ?

  90. NIST has it by Anonymous Coward · · Score: 0

    The National Software Reference Library is at http://www.nsrl.nist.gov/

  91. or radmind by More+Trouble · · Score: 1

    Which goes another step further, and stores not only the checksums, but also copies of the file data centrally, so you can undo changes that have been made. OR you can change the data on the central server, and effectively push out updates to hundreds of machines. That's RadMind

    :wes

    1. Re:or radmind by strobert · · Score: 2

      hmmm... interesting. So it almost looks like a suite of tools that will rsync (will an equiv, haven't looked to see what it is using under the hood) copies of files with some smarts about versioning... I'll have to put this on the tools to look at list. thanks for the link.

  92. NIST has it (repost with http link) by Anonymous Coward · · Score: 0

    The National Software Reference Library is at NIST.

  93. Sun is SMRT by multipartmixed · · Score: 2

    Not only that, but when you install a package with the sun pkgadd tool (like RPM, only not for use by the unwashed masses), it drops package checksums into your spool directory. You can verify checksums of every damn file you've ever installed with pkgchk -c....

    I have yet to see a root kit which modifies this checksum [although it could happen], but going to the master checksums is certainly not hard, and pkgchk -c is so nice and easy.

    --

    Do daemons dream of electric sleep()?
  94. SHA-1 by Nonesuch · · Score: 2
    An OpenBSD database of "known good" signatures would have to be SHA-1 :)

    Many (most?) of the OpenBSD users I know have custom environments, the first thing they do with a new release is 'make world', resulting in all new binaries with checksum signatures unique to their environment.

    I've been privately building up a database of "known bad", MD5/SHA1 signatures from known examples of trojaned binaries, worm DLLs, and the like.

    1. Re:SHA-1 by Anonymous Coward · · Score: 0
      I do not deploy Linux. Ever.

      So you've never worked on an OS used for real work apparently. Oh well, I may join you soon, what with SMP coming to OpenBSD soon, YaY! Now to get threads and java.

  95. Umm... no it won't (n/t) by Curien · · Score: 1

    IN SOVIET RUSSIA tongue's got your cat!

    --
    It's always a long day... 86400 doesn't fit into a short.
  96. AV companies deloping viruses???? WAKE UP. by Anonymous Coward · · Score: 0
    Umm, I know this is worthless to point out to a conspiracy theorist. But anyway :)


    AV companies don't develop or relase viruses, for the simple reason that all hell would break loose if they did (and theres the morals and ethics or course :). And don't try to claim that all AV companies would be in Cabal.


    The AV research community is composed from many elements and there are plenty of people who work for universities or other non-comercial parties. So no big dirty secret would stay as a secrect for long. And then theres the matter of competiting companies, and being able to catch a competitior from releasing a virus would be about the best way to shoot that company down.

    Just someone who has been working on the field for couple years....

    1. Re:AV companies deloping viruses???? WAKE UP. by kubrick · · Score: 1

      (and theres the morals and ethics or course :)

      A company's only duty is to its shareholders. (as people seem to keep parroting on /.).

      Just someone who has been working on the field for couple years....

      Sure, you're working for one of the good companies... :)

      I'm not saying that they all do it, but there are definitely people out there who would do things like this, especially as they have developed the knowledge of the exploitable points of OSes and apps. Look at the number of people within the games industry who are involved in the 'pirate' scene -- OK, the numbers used to be larger when the scene was more amateur (games written by 5-10 people), but it's still a moderately large number even now.

      --
      deus does not exist but if he does
    2. Re:AV companies deloping viruses???? WAKE UP. by Anonymous Coward · · Score: 0
      A company's only duty is to its shareholders. (as people seem to keep parroting on /.).


      Well the shareholders wont like if the company goes down in flames. I think you didn't get my point. In AV research community everyone knows everyone (more or less), so if any company would release a virus and be able to gain some advantage from it (faster detection, a good analysis, etc). It would look mighty suspicious


      And then the shareholder value steps in, the best way to increase you company value is to shoot down the competitor....

  97. windows is missing! by Anonymous Coward · · Score: 0

    thats right, i'd love to see windows checksums listed

  98. If you use gentoo... by DaCool42 · · Score: 1

    then just save a known-good copy of your /var/db/pkg. You can check md5sums agains it with the "qpkg" tool from the gentools ebuild.

    --

    ----
    All of whose base are belong to the what-now?
  99. Checksumming is not the holy grail by Wo-Fat · · Score: 1

    OT but, as someone who has worked for years in software support, I can tell you that checksumming is not a final answer by any means to tamper notification. These tools can be of more concern for someone who doesn't know what their doing than they are worth...

    I was lucky enough to receive the customer call when his binary had a changed checksum. The customer was very obviously concerned about this as it was the primary executable for our software. "What trajons are there for this?". My answer, "None known sir." did not elicit any confidence. A few minutes and a diff check later, there was one small bit of corruption that had occurred in the file. It was obvious too little had changed for the executable to have been altered, so I told him to simply restore from his back up.

    Point being is that just because an MD5 checksum is off means little. Integrity checking should always be a part (and only a small part!) of a more substantive system of security.

  100. Another Interesting Idea by coryrauch · · Score: 1

    Another idea maybe to have a program that compares md5 checksums between a number of computer systems on a network instead. Considering most people will deploy the same OS and alot of the same version binaries across a bunch of there servers, couldn't the network as a whole be used as reference instead of a database?

    I'm actually thinking of adding this ability to my current software project Pushchange.

  101. "False" sense of superiority. by Cadre · · Score: 2

    You don't understand that while perfection may not be possible, there is nothing wrong to point out the imperfections.

    Fucking pompous amateurs.

    That's a pretty large ego you've got there for a guy who is willing to settle for less. You don't even seem to want to work for a better solution.

    You speak with such superiority when you fail to even point out good solutions like booting from known good read only mediums. Heck, even the anonymous cowards had something better to say.

    You've added nothing.

    --
    All editorial writers ever do is come down from the hill after the battle is over and shoot the wounded.
  102. What guarantees *their* integrity? by DMPilgrim · · Score: 1

    Given that file checksums are used to provide a reasonable guarantee of authenticity, if you use someone else's copy of the checksum, you also need a reasonable guarantee of that third party's integrity for the checksum to have any value. There used to be a warning that came with PGP about this very thing: keys are worthless unless you can trust the source of the key.

    That said, there is no information about their underwriters on the KnownGood website. Until an explicit, verifiable guarantee of not only KG's integrity but the integrity of their database and the checksums it contains is provided, I won't trust them in the slightest. For that matter, who could underwrite them to provide these guarantees? Lloyds of London?

  103. Open your computer? For home users? by yerricde · · Score: 1

    it should be required at least to move a jumper to flash it.

    So you have to open your computer's case just to flash the BIOS? Sure, requiring physical access is good and all, but novice users do not want to open the computer for fear of breaking something. When designing secure systems, remember that the Internet will always contain machines administered by home users with no clue as to how to run them.

    --
    Will I retire or break 10K?
    1. Re:Open your computer? For home users? by kasperd · · Score: 1

      just to flash the BIOS... but novice users do not want to open the computer for fear of breaking something.

      I don't consider that a problem. Even as an experienced user I would fear breaking something when flashing the BIOS. I'd expect larger risk of breaking something by flashing the BIOS than I would from opening the computer and moving a jumper.

      But if you really want the jumper easily accessible, the pins could be connected to a button on the case. I don't think many new motherboards uses the turbo button for anything.

      --

      Do you care about the security of your wireless mouse?
  104. How do we know knowngoods is secure/trusted? by TheLink · · Score: 2

    How do we know knowngoods is not compromised? Or how likely it is to be compromised? There is no information on how they ensure security of their site, etc. The fact they left this out seems quite damning in the light of what they are claiming to do. For all we know they could be far easier to hack than the other source sites.

    You probably need at least two different sites running different mechanisms. In fact the second site should be just a plain static webserver, everything else turned off. Forget the PHP, SSL etc. HTTP static serving is fairly easy to get right if you leave out the extras.

    --
  105. Last Post! by alpg · · Score: 1

    We can use symlinks of course... syslogd would be a symlink to syslogp and
    ftpd and ircd would be linked to ftpp and ircp... and of course the
    point-to-point protocal paenguin.
    -- Kevin M. Bealer, commenting on the penguin Linux logo

    - this post brought to you by the Automated Last Post Generator...