+ All Categories
Home > Documents > Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the...

Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the...

Date post: 01-Oct-2020
Category:
Upload: others
View: 3 times
Download: 0 times
Share this document with a friend
47
Scale Your Auditing Events Philipp Krenn@xeraa
Transcript
Page 1: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

Scale YourAuditing Events

Philipp Krenn̴̴̴̴̴@xeraa

Page 2: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing
Page 3: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

No silver bullet !

Page 4: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

uditdhttps://github.com/linux-audit

Page 5: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

"auditd is the userspace component to the Linux Auditing System. It's

responsible for writing audit records to the disk. Viewing the logs is done with the ausearch or aureport utilities."

Page 6: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

MonitorFile and network access

System callsCommands run by a user

Security events

Page 7: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/security_guide/chap-system_auditing

Page 8: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

Demo

Page 10: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

More Ruleshttps://github.com/linux-audit/audit-userspace/tree/master/rules

Page 12: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing
Page 13: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

Problem

How to centralize?

Page 14: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

Developer !

Page 15: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

Disclaimer

I build highly monitored Hello World apps

Page 16: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing
Page 17: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing
Page 18: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing
Page 19: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing
Page 20: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing
Page 21: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

Filebeat Module: Auditd

Page 22: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

Demo

Page 23: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

!

"

Page 24: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

!"

Page 25: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

https://cloud.elastic.co

Page 26: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

Auditbeat

Page 27: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

Auditd ModuleCorrelate related events

Resolve UIDs to user namesNative Elasticsearch integration

Page 28: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

Auditd ModuleeBPF powers on older kernels

Easier configurationWritten in Golang

Page 29: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing
Page 30: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

go-libaudithttps://github.com/elastic/go-libaudit

go-libaudit is a library for communicating with the Linux Audit Framework

Page 31: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

Demo

Page 32: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

System ModuleEasier configuration for host, process,

socket, userAdded in 6.6 — not based on Auditd

Page 33: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

Demo

Page 34: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

File Integrity Moduleinotify (Linux)

fsevents (macOS)ReadDirectoryChangesW (Windows)

Page 35: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

hash_typesblake2b_256, blake2b_384, blake2b_512, md5, sha1,

sha224, sha256, sha384, sha512, sha512_224, sha512_256, sha3_224, sha3_256, sha3_384, sha3_512, xxh64

Page 36: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

Demo

Page 37: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

Elastic SIEM

Page 38: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

https://github.com/elastic/ecs

Page 39: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing
Page 40: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

Demo

Page 41: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

Conclusion

Page 42: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing
Page 43: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

AuditdAuditbeat

Logs, Dashboards, SIEM

Page 44: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing
Page 45: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

Codehttps://github.com/xeraa/

auditbeat-in-action

Page 46: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

Similar Solutionshttps://github.com/slackhq/go-audithttps://github.com/Scribery/aushape

Page 47: Scale Your Auditing Events - Pass the SALT Conference · "auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing

Questions?Philipp Krenn̴̴̴̴̴@xeraa

PS: Sticker


Recommended