Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the...

44
Scale Your Auditing Events Philipp Krenn@xeraa

Transcript of Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the...

Page 1: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

Scale YourAuditing Events

Philipp Krenn̴̴̴̴̴@xeraa

Page 2: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,
Page 3: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

uditdhttps://github.com/linux-audit

Page 4: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

"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 5: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

MonitorFile and network access

System callsCommands run by a user

Security events

Page 6: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

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

Page 7: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

Demo

Page 9: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

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

Page 11: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,
Page 12: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

Problem

How to centralize?

Page 13: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

Developer !

Page 14: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

Disclaimer

I build highly monitored Hello World apps

Page 15: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,
Page 16: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,
Page 17: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,
Page 18: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,
Page 19: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,
Page 20: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,
Page 21: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

Filebeat Module: Auditd

Page 22: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

Demo

Page 23: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

!

"

Page 24: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

!"

Page 25: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

https://cloud.elastic.co

Page 26: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

Auditbeat

Page 27: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

Auditd ModuleCorrelate related events

Resolve UIDs to user namesNative Elasticsearch integration

Page 28: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

Auditd ModuleeBPF powers on older kernels

Easier configurationWritten in Golang

Page 29: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,
Page 30: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

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 - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

Demo

Page 32: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

System ModuleEasier configuration for host, process,

socket, userAdded in 6.6 — not based on Auditd

Page 33: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

Demo

Page 34: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

File Integrity Moduleinotify (Linux)

fsevents (macOS)ReadDirectoryChangesW (Windows)

Page 35: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

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 - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

Demo

Page 37: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

Conclusion

Page 38: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,
Page 39: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

AuditdAuditbeat

Logs, Dashboards,...

Page 40: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,
Page 41: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

Tryhttps://dashboard.xeraa.wtf

SSH: [email protected]̴secret

Page 42: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

Codehttps://github.com/xeraa/

auditbeat-in-action

Page 43: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

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

Page 44: Scale Your Auditing Events - sec4dev … · go-libaudit is a library for communicating with the Linux Audit Framework. Demo. System Module Easier configuration for host, process,

Questions?Philipp Krenn̴̴̴̴̴@xeraa

PS: Sticker