audit trail
A record of who did what and when, kept so actions can be reviewed and investigated later.
In more detail
It links each action to an individual, which is why shared administrator accounts undermine it. Logs from sudo, version control history and cloud provider activity logs are all audit trails.
Examples
Escalating with become from a personal login leaves an audit trail in sudo's logs; a shared root login does not.Kafka's append-only, replayable log fits audit trails when retention is long enough.sudo logs every command it runs, and journald records service events, so privileged actions leave evidence. Identity data and credentials often have different audit requirements. An auditable process is one where this evidence exists and cannot easily be altered by the person being audited.The course's secret manager records denied reads as well as granted ones, because refusals are the interesting signal.In Terraform: A Terraform pipeline creates one by linking each commit to its plan, approval and apply log. The goal is that an auditor can follow a change from commit to applied result without guessing.Related terms
- privilege escalation — Gaining the rights of a more powerful account, such as root, either deliberately through a tool like sudo or illegitimately through a flaw.
- sudo — A command that runs another command with administrator (root) rights after checking you are allowed to.
- root user — The all-powerful administrator account on Linux, with user ID 0, which can read or change anything.
- log — A time-stamped record of an individual event in a system, such as one request being handled; structured logs record it as named fields rather than free text.
- right to erasure — A person’s legal right, under laws such as the GDPR, to have their personal data deleted in many circumstances.
- key rotation — Replacing a password or key with a new one on a schedule or after a suspected leak, and re-encrypting what it protected.
- GitOps — Operating a system by keeping its desired state in Git and letting a controller continuously make the live system match it.
- temporary security credentials — Cloud credentials that expire on their own after minutes or hours, issued when a role is assumed.
- AWS CloudTrail — The AWS service that records API calls made in an account: who called what, when, from where and with which result.
- Kubernetes audit policy — The rules telling the Kubernetes API server what to record for each request, from None through Metadata and Request to RequestResponse.
- log file integrity validation — A CloudTrail feature that writes an hourly signed digest of every log file's hash, so edits and deletions can be proven later.
- access control — The rules and mechanisms that decide who may read, use or change a resource.
- append-only — Describes a record you can only add new entries to, never edit or delete existing ones.
- append-only log — A data structure where new entries are only ever added at the end and existing entries are never changed in place.
- replay — Delivering or returning something again: a stored result for a repeated request, or past events for a client that missed them.
- retention — How long data such as backups, logs or snapshots is kept before it is deleted.
- journald — The systemd logging service that collects messages from the kernel, services and programs into a structured, indexed journal.
- structured logging — Writing each log entry as named fields, such as status, duration and request identifier, instead of a free-text sentence.
- repudiation — Someone doing an action and then credibly denying it, because the system kept no trustworthy record.
- AWS Secrets Manager — An AWS service that stores passwords, keys and other secrets encrypted and hands them to programs that are allowed to read them.
- access log — A log file where a web server writes one line per request, with the client address, time, method, path and status code.
- release gate — An automatic check that must pass before a change may be deployed.
- saved plan — A plan written to a file with -out, which terraform apply can later carry out exactly as reviewed.
- pull request — A request on a hosting service such as GitHub to merge one branch into another, with a page for review, discussion and automated checks.
Taught in
- Excessive Agency — AI Engineering: LLM Apps, RAG & Agents
- Connections And Privilege Escalation — Ansible Configuration Management at Scale
- RBAC Contrasted With ABAC — Modern API Architecture: REST, GraphQL & gRPC
- Scopes And Key Rotation — Modern API Architecture: REST, GraphQL & gRPC
- Handling PII And Data Privacy — Modern API Architecture: REST, GraphQL & gRPC
- Keyless Authentication: OIDC to the Cloud — Continuous Integration & Continuous Delivery Pipelines
- What is GitOps? — Continuous Integration & Continuous Delivery Pipelines
- Image Update Automation — Continuous Integration & Continuous Delivery Pipelines
- Shared Responsibility Model & Cloud Threat Landscapes — Cloud Security & DevSecOps Engineering
- AWS Organizations, Account Hierarchies & Azure Management Groups — Cloud Security & DevSecOps Engineering
- Security Landing Zones & Centralized Egress Inspection — Cloud Security & DevSecOps Engineering
- Shift-Left Security Principles & Automated Pipeline Gates — Cloud Security & DevSecOps Engineering
- Kubernetes Pod Security Standards: Baseline & Restricted — Cloud Security & DevSecOps Engineering
- Securing the Kubernetes Control Plane & Node Components — Cloud Security & DevSecOps Engineering
- Continuous IaC Drift Detection & State Protection — Cloud Security & DevSecOps Engineering
- CloudTrail Logging, Integrity Validation & Athena — Cloud Security & DevSecOps Engineering
- Threat Detection with GuardDuty & Anomaly Analytics — Cloud Security & DevSecOps Engineering
- Decoupling Release From Deployment: Feature Flags — DevOps & Site Reliability Engineering
- Pipelines And GitOps Context — DevOps & Site Reliability Engineering
- Why A Log And Not A Queue — Apache Kafka & Event Streaming
- When Kafka Is The Wrong Tool — Apache Kafka & Event Streaming
- Users, UIDs And The Password File — Linux Fundamentals & Systems Administration
- Setuid, Setgid, And Root Through sudo — Linux Fundamentals & Systems Administration
- Routing & Middleware: Path Parsing & Async Context — Node.js Internals & Backend Services
- The Environment Variable Trap — Application Security & Threat Modeling for Engineers
- Moving To A Secret Manager — Application Security & Threat Modeling for Engineers
- Workload Identity — Application Security & Threat Modeling for Engineers
- Running Terraform In CI — Infrastructure as Code with Terraform
- Native Testing With Tftest Files — Infrastructure as Code with Terraform
- Provider Mocking For Tests — Infrastructure as Code with Terraform
- Policy As Code With OPA — Infrastructure as Code with Terraform
- Releasing The Real Cloud Artifact — Infrastructure as Code with Terraform
- Sensitive Data, Ephemeral Values And Secrets From Vault — HashiCorp Terraform Associate (004) Exam Prep
- Inspecting And Repairing State From The CLI — HashiCorp Terraform Associate (004) Exam Prep
- SELinux: Labels, Ports And Booleans That Persist — RHCE in Ansible (EX294): Automate Red Hat Systems
References
- NIST glossary: audit trail
- OWASP Cheat Sheet Series: Logging
- sudoers manual
- AWS Secrets Manager: logging with CloudTrail