Baselining Logs

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    2 Favorites

    Baselining Logs - Presentation Transcript

    1. Baselining Logs How to create baselines and analyze logs effectively?
    2. Outline
      • What is a baseline? What is a log?
      • Why baseline?
      • Requirements for log “baselining”
      • Baseline lifecycle
      • What baselines well?
      • What baselines poorly?
      • Examples and how to do it
    3. Definitions
      • Log = record from a file about computer activities
      • Also: alert, event, alarm, etc
      • Baseline = “A starting point or condition against which future changes are measured”
    4. Log Analysis Methods
      • Manual
        • ‘ Tail’, ‘more’, etc
      • Filtering
        • Positive and negative (“Artificial ignorance”)
      • Summarization and reports
      • Simple visualization
        • “… worth a thousand words?”
      • Simple automation
        • Filters
      • Correlation
        • Rule-based and other methods
    5. Why Baseline?
      • Situational awareness
        • What is going on compared to some baseline
      • New threat discovery
        • Unique perspective unavailable from other methods
      • Getting more value out of the network and security infrastructures
        • Leverage the stuff you have in new ways
      • Extracting what is really actionable automatically
        • Out of baseline, unusual = bad?
      • Measuring security (metrics, trends, etc)
        • Compliance and regulations
    6. Simple Examples
      • Hits on port 80 over the last week
      • User logins to server X per day
      • Use of su command per hour of day
      • Count of new ports hit on a firewall
      • Number of hosts touching each server per hour
    7. What is needed?
      • Data – and lots of it! 
      • Normalized format across data sources
      • Expert feedback into what is normal and bad
      • Not needed : “training data”!
    8. Baseline Assumptions
      • There is data available
      • Past was not disastrous!
      • Baseline is a correct model for the situation at hand
        • won’t work for erratic/random phenomena or will cause “bad baselines”
    9. Baseline Lifecycle II
      • Create
      • Update
      • Age
      • Compare and act on results
      • Refine
    10. Baseline Lifecycle II
    11. Baseline Creation
      • Pick parameters to baseline
        • E.g. NIDS alerts per sensor
      • Pick a time period and time bin
        • E.g . compare today to last week
      • Pick comparison method
        • E.g. compare today’s count to average
    12. Compare to Baseline
      • NEW
      • OVER
      • UNDER
      • GONE
      Newly appeared, over baseline, under baseline (a lot vs a little), disappeared
    13. “Interestingness”
      • Something interesting ?
      • One research paper defines “interesting” thus:
        • Unexpected to user
        • Actionable (we can and/or should do something about it)
      • Examples :
        • Compromised/infected system
        • Successful attack
        • Insider abuse and IP theft
        • Covert channel/hidden backdoor communication
        • Increase in probing
        • System crash
    14. What Baselines Well?
      • Where different = interesting!
      • New attack type
      • Larger number of bytes
      • Sharp drop in log event flow
      • New usernames
      • More destinations hit
    15. Example 1: Can you Guess What Happened?!
      • This visual for this example is censored. The picture would show a one-dimensional of hits to a specific port.
      Destination Port 1D Baseline
    16. Example 2: Can you Guess What Happened?!
    17. Example 4: Can you Guess What Happened?!
    18. Good Baselines [Operationally Tested]
      • Log message type per sensor per day
      • Log message type per protocol/port
      • Log message types (watch for NEW)
      • Protocols per sensor per day
      • Count (unique (alert)) per source
      • Count (unique (port)) per source
    19. What Baselines Poorly?
      • Random things
        • Hits on port TCP 3445 anybody? 
      • Things that go up and down for on their own
        • Accesses to a document on a server
      • Sometimes, only large deviations matter
    20. Examples
    21. How YOU can do it?
      • First, collect events
        • AANVAL
        • OSSIM
        • OSSEC (?)
        • ACID/BASE
        • Syslog2SQL
        • Whatever SQL log and event store
    22. How YOU can do it?
      • Second, plan what to baseline
      • Third, run the tools
      • Fourth, act on the results
        • Mitigate, block, disable, slice-n-dice 
      • Fifth, automate as needed
    23. Summary
      • Easy and effective way to deal with logs from multiple sources
      • Allow to automate log monitoring
        • To some extent
      • Result may be given to less skilled people for follow-up
    24. Q&A? More information?
      • Anton Chuvakin, Ph.D., GCIA, GCIH, GCFA
      • anton@chuvakin.org
      • Security Strategist
      • Author of “Security Warrior” (O’Reilly 2004) – www.securitywarrior.com
      • Book on logs is coming soon!
      • See www.info-secure.org for my papers, books, reviews and other security resources related to logs

    + Anton ChuvakinAnton Chuvakin, 2 years ago

    custom

    1192 views, 2 favs, 0 embeds more stats

    This is my old presentation on using baselining met more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 1192
      • 1192 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 2
    • Downloads 0
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories