trailofbits / trailofbits/algo

Rewrite auditd role to use go-audit

Open
#16 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ansible_server_deploy enhancement needs_triage security_enhancement
Dominant language
Python
Stars
30.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

auditd is the best security feature that no one uses. As an optional feature, we should have Algo configured to log security-critical information and email it out of the VM on a regular basis. The role should use go-audit to get its job done.

There's a lot of sample auditd configuration from CI Security that we copied over to this repo. We should verify that these rules are appropriate:

https://github.com/trailofbits/algo/blob/master/templates/audit.rules.j2
https://github.com/trailofbits/algo/blob/master/templates/auditd.conf.j2
https://github.com/trailofbits/algo/blob/master/templates/CIS.conf.j2
https://github.com/trailofbits/algo/blob/master/security.yml#L44-L52

Here's a short guide for installing and configuring go-audit:
https://summitroute.com/blog/2016/12/25/Catching_attackers_with_go-audit_and_a_logging_pipeline/

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing templates/audit.rules.j2, templates/auditd.conf.j2, templates/CIS.conf.j2, and security.yml#L44-L52, then compare them with the linked CI Security rules and the go-audit guide. Determine the appropriate audit rules and configuration for an optional role using go-audit. Done means security-critical information is logged and emailed out of the VM regularly.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible
Domain
devops, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.