iac.htora.dev · security templates

Home/Templates/All templates

All templates

Every template on the site, named after what you end up with and grouped by the job it does.

To see only the templates for one platform, pick it here.

Logging and evidence

Evidence that survives termination

One tag or label keeps a machine alive, captures its disks and, on AWS, its memory, and cuts it off, in that order, on four clouds and Kubernetes.

TerraformArgo CDReady
Evidence from a compromised container

One script keeps a pod's node alive, records the pod, snapshots the node's disks, and cuts the pod off, on GKE, EKS, AKS, or OKE.

TerraformReady
Audit logs nobody can delete

Send cloud audit logs to storage that refuses deletes for a set number of days.

TerraformReady
Get cloud logs into your SIEM

A delivery pipe from cloud logging to the place your detections actually run.

TerraformReady
Keep network records long enough to be useful

Traffic records stored cheaply for months, in a format you can query.

TerraformReady
An analysis machine that cannot reach production

A clean-room virtual machine for looking at suspicious files, with no route to anything live, on four clouds.

TerraformReady

Identity and access

Emergency access that works when login is broken

A separate account that does not depend on your identity provider, and shouts every time it is used.

TerraformReady
Shell access without opening a port

Reach a server for troubleshooting with nothing listening on the internet, and a recording of the session.

TerraformReady
Somewhere to keep secrets that rotates them

A managed store with scheduled rotation, a record of every read, and a way to take access away.

TerraformReady
Encryption keys you control and can switch off

Your own keys, rotated on a schedule, with a usage log and an off switch.

TerraformReady
Cloud access for pipelines and pods without stored keys

Pipelines and pods prove who they are with short-lived tokens, so there is no cloud key to leak.

TerraformReady

Guardrails and compliance

Block the changes you never want

Policies that make dangerous actions fail outright, so there is nothing to alert on afterwards.

TerraformReady
Check every resource against your rules, all the time

Continuous evaluation that flags a resource the moment it stops matching the standard.

TerraformReady
Data that cannot leave your organisation

Perimeter policies so stolen credentials cannot copy data to an attacker's own account or project.

TerraformReady

Hosts

Lock SSH down to keys only

Turn off password logins and root logins, and check the config before restarting so you cannot lock yourself out.

AnsibleReady
Send host logs off the machine

Forward system logs to a collector so they outlive the machine that wrote them.

AnsibleReady
Record what investigations ask first

auditd rules on Linux for account changes, sudo rights, SSH keys, persistence, kernel modules, and commands people ran as root.

AnsibleReady
Ask every host the same questions

osquery on Linux, macOS, and Windows, logging changes to accounts, keys, persistence, listening ports, and drivers.

AnsibleReady
Catch attackers at work on a server

Falco on plain Linux hosts, alerting on web shells, credential theft, and new programs in system folders.

AnsibleReady

Kubernetes

Point Argo CD at a repository

The first Application, which then manages every other application from Git.

Argo CDReady
See what containers are doing while they run

Runtime alerts installed by the same pipeline that ships the workloads, so they cannot fall behind.

Argo CDReady
Stop risky pods before they start

Admission policies refuse privileged pods, host mounts, and unsigned images, and report every refusal.

Argo CDReady
A record of every action against the cluster API

Cluster audit logs sent where responders can search them, so exec into a pod or a new role binding is never invisible.

TerraformReady
Encrypt and authorise every call between services

Mutual TLS between every service, and a deny-by-default rule for which service may call which.

Argo CDReady

Detection and response

Notice data walking out the door

Alerts on the moves someone makes on the way out with data: sharing it outside, reading far more than usual, changing who can decrypt it, and quieting the logs.

TerraformReady
Catch account takeover at the identity provider

Alerts in Okta, Entra ID, Google Workspace, and Microsoft 365 on the moves that turn one stolen account into many. They cover admin rights granted, sign-in rules changed, MFA removed, mail forwarded out, and a log feed going quiet.

TerraformReady

AI

Know who is using your AI models

Model call records on Bedrock, Vertex AI, Azure OpenAI, and OCI Generative AI, with alerts when logging or guardrails are turned off, or stolen keys go looking for models.

TerraformReady

Pipeline and state

A safe place to keep Terraform state

The state file contains secrets in plain text. This stores it encrypted, versioned, and locked while a run is in progress.

TerraformReady
Pipeline security findings in front of responders

Secret scanning, push protection, and dependency alerts switched on and sent to the SIEM, so a leaked key is an incident.

TerraformReady

Registry 0.23.0. Built 2026-11-17.

Made by Habibullah Tora. Source on GitHub. Code under the MIT licence, writing under CC BY 4.0.