Slashdot Mirror


DSS/HIPPA/SOX Unalterable Audit Logs?

analogrithems writes "Recently I was asked by one of the suits in my company to come up with a method to comply with the new PCI DSS policy that requires companies to have write once, read many logs. In short the requirement is for a secure method to make sure that once a log is written it can never be deleted or changed. So far I've only been able to find commercial and hardware-based solutions. I would prefer to use an open source solution. I know this policy is already part of HIPPA and soon to be part of SOX. It seems like there ought to be a way to do this with cryptography and checksums to ensure authenticity. Has anyone seen or developed such a solution? Or how have you made compliance?"

11 of 381 comments (clear)

  1. use a line printer by 1u3hr · · Score: 4, Insightful
    Connect a line printer to mirror the log file as it's created. Use continuous fanfold paper. Get staff to sign and date first and last page.

    Lawyers love paper. (A magistate once asked me if a printout I presented in a case was an "original email". I said it was as close as you could get.) In all likelihood, no one will ever refer to it, so don't worry about that it might take 10 minutes to find a page. Once a month, ship it to a secure storage. For real paranoia, have two printers making two simultaneous copies.

  2. Re:Syslog by Whiney+Mac+Fanboy · · Score: 4, Insightful

    Besides logging locally to disk, also add a line to /etc/syslog.conf to log to a remote machine.

    If syslog can write to a remote machine, then a compromised syslog can overwrite a file on a remote machine. I suspect thats not even remotely close to enough read-only.

    As others have suggested, print your logs on a line printer.

    --
    There are shills on slashdot. Apparently, I'm one of them.
  3. Syslog + chattr by ethzer0 · · Score: 5, Insightful

    I use syslog-ng to relay information from several different datacenters to a centralized and secure location hosting all of the syslog information. Each DC has its own syslog-ng system acting as the local relay, transporting syslog information from local clients using TCP over a VPN to the centralized host. The logs are written on the central syslog sever organized by on date and hostname, and each file that is created is then assigned an 'append-only' bit using chattr. It works really well.

  4. FreeBSD to the rescue by stox · · Score: 3, Insightful

    FeeBSD supports append only files via the chflags command.

    --
    "To those who are overly cautious, everything is impossible. "
  5. Re:Syslog by pedestrian+crossing · · Score: 3, Insightful

    As others have suggested, print your logs on a line printer.

    But that doesn't really scale very well, and then you have the problem of dealing with retention/storage requirements.

    --
    A house divided against itself cannot stand.
  6. This request is impossible. by The+Master+Control+P · · Score: 3, Insightful

    Given sufficient resources, time, and dedication, ANY log can be altered.

    If the "unalterable" log is maintained in software, it's a comparatively simple matter of hoisting it up on a VM. Since we're presumably talking about white-collar crime, it's a fair bet they have or can get root access to the machine to install the VM and rootkit to hide it. At that point, the CEO can do anything and the system can't fight back. Capture passwords of people logging in, alter data, you name it.

    A hardware system would be more robust, but still vulnerable. I imagine the most likely attack vector would be Man in the Middle - Just take over the box that guards/drives the logger machine.

  7. Re:Syslog by Anonymous Coward · · Score: 4, Insightful

    a compromised syslog can overwrite a file on a remote machine

    Not with a properly configured syslog. You're not supposed to just use a remote logfile, but a remote logging daemon (RFC 3164). That way you can add entries to a remote log, but not change or delete any (unless you make the logfile directly accessible over the network, which I wouldn't recommend).
  8. Dont skimp... by pjr.cc · · Score: 3, Insightful

    Seriously, when it comes to legal requirements, do not skimp!

    Go for something that is guarentee'd to fulfill your legal compliance requirements.

    Yeah, optical media is great for WORM, but you dont want something your going to have to manage day to day. The legal req's of sox and so forth are beyond that of traditional optical drives in terms of life span in any case. Do not go with optical for compliance unless its something specifically designed for compliance (Again, thats $$$).

    As someone suggested, centera is a good option - but all the storage vendors have good options (from emc, netapp, hds, sun, falconstor, mimosa the list is endless) and they'll all tell you how theirs is better than anyone else (and why). At the end of the day, you want a compliance solution with someone's stamp on it, and a throat you can cut when it goes wrong.

    If your absolutely determined to go the compliance route on OSS - go with ext3cow (www.ext3cow.com) IMHO, a fully versioning COW fs with a non-erasable past and the best OSS solution for the job - backup on to optical if you like, but dont make optical your only option. If it only had policy-based management (i.e. snapshot whenever user X or group y writes a file) rather then crontab'ing its snapshot agent it would almost be perfect for a start-point solution for compliance. It has a big benifit along with it though, you can show users how to get files "from yesterday".

    Keep in mind, WORM means policy-based write-once, not necessarily immutable storage! And almost every compliance worm product out there depends on that fact.

  9. Don't Build Your Own Device by Interfacer · · Score: 3, Insightful

    I work for a big pharma company as a sysadmin, and we have to abide by similar rules and laws. Our data recording and data logging has to be proven to be unalterable.

    Go with a commercial solution unless you want to battle with the QA and Validation departments for haf a year. And even if you would get the go-ahead (unlikely) you'd get in a hell of a lot of trouble during an audit because auditors a) don't know your solution and b) they will quickly see that it is not certified.

    There are specified requirements (don't know the names and numbers by heart) that your solution has to proven to fulfill, and certified by some external party.
    Just saying 'Yeah but I know it cannot be altered because it is syslog / ' will not cut it.

    And non-compliance can eend up costing your company millions if not hundreds of millions.
    Open source or home grown has it's place, but in a regulated environment you go with commercial for certain things because that is the only option where you get certification with your device / software.

  10. Re:How odd by Sobrique · · Score: 3, Insightful
    Sort of, but not quite. A Centerra is a Content Addressed Storage thingy. Which basically means it's file identifiers are md5 sums. It's a multi node thingummy too, which replicates stuff about. Is it impossible to tamper with? Well, no, nothing is. But it's pretty hard. Simply because it has implicit 'tamper detection'.

    The API is also geared up so you can choose what 'mode' you want it to operate in. In the most secure mode, the API and OS built in (it's Suse based) won't let you delete anything. Which, basically means you have to pull out the individual drives that 'clip' is stored on, to trash it. Data will be gone, which isn't great, but ... well, pretty much impossible to prevent for any system. Modifying data retroactively though, is much much harder - recreating the right md5sum is a non trivial task. Impossible? Perhaps not, but ... well, EMC have done quite well with 'selling' this product in a 'it will meet your compliance needs' which is considered good enough for our auditors.

    We have 'financial organisation' regulations, for retention of emails, and a Centerra is what we settled on as the solution.

  11. Re:Write them to a DVD jukebox by itwerx · · Score: 3, Insightful

    Wish there was a way to mod an entire thread Offtopic.

    From TFA:
          "So far I've only been able to find commercial and hardware-based solutions. I would prefer to use an open source solution."
    FP:
          Write them to a DVD jukebox

          Hmm, yeah, I'm sure there's dozens of open source hardware designs for DVD jukeboxes - I'll have that Googled by the time my soldering iron heats up!
          Only on Slashdot can the First Post get modded to +5 for a reply which is so completely Offtopic it's Funny, obviously written by somebody who didn't RTFA, followed by dozens of posts debating the merits of the "answer" without noticing that it's not what the submitter is looking for!!
          And we wonder why the rest of the world thinks IT people can't communicate...