IaC security: catch risky infrastructure before it is deployed

Obseria checks Terraform files, Kubernetes manifests and Dockerfiles in your GitHub repositories for unsafe settings such as public storage or missing encryption, before they reach a cloud account or cluster.

Connect GitHub once to scan your infrastructure repositories
Code Security with an IaC tab for Terraform, Kubernetes and Dockerfiles
Configuration fixes tracked as tasks
File types
Terraform, Kubernetes manifests, Dockerfiles
Code source
GitHub repositories
Typical findings
Public storage, missing encryption
Deployed state
CSPM in Security Enterprise
Product tour

How your team works with IaC security

From connecting GitHub to the corrected configuration: these views come straight from the Obseria app and show how IaC checks fit into Code Security.
01 / 05

Connect your GitHub organization

All connections, including GitHub organizations, are listed under Integrations. Once GitHub is connected, Code Security can read the repositories with your infrastructure code.

  • One connection for all repository checks
  • Connected and available integrations at a glance
  • No plugin in your pipeline
Connect your GitHub organization
02 / 05

Misconfigurations in their own tab

A scan finds misconfigurations in Terraform, Kubernetes manifests and Dockerfiles. The IaC tab sits next to dependencies, secrets and the scan history.

  • Public storage and missing encryption
  • Same scan as dependencies and secrets
  • Start a scan with one click
Misconfigurations in their own tab
03 / 05

AI review for the code around it

The AI code review checks a repository and branch with your own instructions and rates findings from info to critical. It complements the rule-based IaC check.

  • Any repository and branch
  • Your own review instructions
  • History of past reviews
Learn more
AI review for the code around it
04 / 05

The clusters your manifests deploy to

Kubernetes monitoring shows clusters, pods, restarts and OOM kills, and lists which data is still missing from a cluster.

  • Pods, restarts and OOM kills
  • Workloads and events
  • Checklist for missing data
Learn more
The clusters your manifests deploy to
05 / 05

Configuration fixes with an owner

Turn important IaC findings into tasks with priority, due date and assignee and follow them as a list or on a board.

  • List or board view
  • Priority, due date and assignee
  • Breakdown by status and person
Learn more
Configuration fixes with an owner
Capabilities

Infrastructure code, application code and cloud state

IaC findings sit next to dependency and secret findings of the same repository, and CSPM checks what is actually deployed.

IaC security

Checks Terraform, Kubernetes manifests and similar files for insecure configuration.

Code security

Code security

Brings source code security checks together in one place.

Case management

Case management

Manages tasks and cases from alerts and findings through to resolution.

Learn more →
Container monitoring

Container monitoring

Monitors containers and Kubernetes workloads: pods, restarts, resources and health per deployment.

Learn more →
  • Cloud security posture management
How it works

From infrastructure file to safe deployment

Five steps that find unsafe settings while they are still a line in a file, not a resource in production.
  1. Connected · infra-live
    01

    Connect

    Connect GitHub once. Code Security can then read the repositories that hold your infrastructure code.

  2. terraform/storage.tf · example
    02

    Scan

    Start a scan. It checks Terraform files, Kubernetes manifests and Dockerfiles for insecure configuration.

  3. High
    Storage bucket is publicly readableterraform/storage.tf
    IaC finding
    03

    Assess

    Open the IaC tab and start with what is exposed: public storage, missing encryption and similar settings.

    • Bucket made private
    • Encryption enabled
    • Change reviewed on branch
    04

    Fix

    Change the file on a branch, review it like application code and track larger changes as tasks.

  4. Terraform0
    Kubernetes0
    Dockerfiles0
    Rescan before apply · clean
    05

    Verify

    Run the scan again before applying. After deployment, CSPM checks the cloud accounts themselves.

In depth

How IaC security works

File types

Terraform, Kubernetes manifests and Dockerfiles

Most teams describe their infrastructure in a handful of formats. Obseria checks the three most common ones: Terraform files for cloud resources, Kubernetes manifests for workloads in clusters and Dockerfiles for the images those workloads run.

The scan runs on the repositories connected through GitHub, without extra build steps or plugins in your pipeline. Infrastructure repositories and application repositories with a deploy/ or terraform/ folder are checked in the same way.

Findings are listed in the IaC tab of Code Security, so platform and application teams look at the same results.

  • Terraform files
  • Kubernetes manifests
  • Dockerfiles
Findings

Unsafe settings found while they are still a line in a file

IaC security looks for insecure configuration such as publicly accessible storage or missing encryption. These are the settings that turn into data leaks when they reach a cloud account, and they are easy to overlook in a long Terraform plan.

Because the check runs on the code, a finding points to the place where the fix belongs. Changing one line in a module is far simpler than tracking down a misconfigured resource in production and wondering how it got there.

A good order of work is to start with what is exposed to the internet, then encryption, then everything else. Exceptions, such as a bucket for a public website, are best documented in the code itself.

  • Public storage
  • Missing encryption
  • Fix where the problem is defined
One scan

Infrastructure and application risks side by side

The IaC check is part of the same scan that checks dependencies for known vulnerabilities and searches code and Git history for secrets. One repository therefore has one picture of its risk, not three reports from three tools.

That also helps with credentials in infrastructure code. A password written into a Terraform variable is reported by secret scanning in the same run, so you see the misconfiguration and the leaked credential together.

The Scans tab keeps the history, so you can see when a repository was last checked and whether a fix removed the finding.

  • Dependencies, secrets and IaC in one run
  • Credentials in IaC found by secret scanning
  • Scan history per repository
Code and cloud

Check what you meant and what is really there

IaC scanning sees the intended state. It cannot see resources created by hand in a console or changed after deployment. For that side, cloud security posture management in Obseria Security Enterprise checks cloud accounts continuously against security rules and benchmarks.

Together, the two checks cover the path from the pull request to the running environment. The Kubernetes views in Obseria show the clusters your manifests are deployed to, and case management keeps track of the fixes.

  • IaC: intended state before deployment
  • CSPM: actual state of cloud accounts
  • Fixes tracked as tasks
Integrations

Infrastructure code and cloud accounts

Terraform files, Kubernetes manifests and Dockerfiles in GitHub repositories. The deployed side, for example AWS, Azure or Google Cloud accounts, is covered by CSPM in Security Enterprise.
  • GitHub
  • Kubernetes manifests
  • Dockerfiles
  • AWS (CSPM)
  • Azure (CSPM)
  • Google Cloud (CSPM)
Guide

IaC security explained

What is IaC security?

Infrastructure as code (IaC) describes servers, networks, storage, clusters and permissions in text files instead of clicking them together in a console. Terraform configurations, Kubernetes manifests and Dockerfiles are the most common examples. IaC security, also called IaC scanning, checks these files for insecure settings before they are applied.

The idea is simple: if infrastructure is code, it can be reviewed like code. A storage bucket that would be publicly readable, a database without encryption or a container that runs as root is visible in the file long before it exists in a cloud account or cluster. Finding it there is far cheaper than finding it in production, or reading about it in an incident report.

Common misconfigurations in infrastructure code

  • Public storage: buckets or blobs that anyone on the internet can read or list.
  • Missing encryption: disks, databases or backups stored without encryption at rest.
  • Open network rules: security groups or firewall rules that allow access from everywhere to administrative ports.
  • Overly broad permissions: roles and policies with wildcards instead of the actions a service really needs.
  • Privileged containers: containers running as root, with host access or without resource limits.
  • Unpinned base images: Dockerfiles that pull latest and silently change with every build.
  • Secrets in configuration: passwords or keys written directly into Terraform variables or manifests.

IaC scanning and cloud security posture management

IaC scanning and cloud security posture management (CSPM) look at the same risks from two sides. IaC scanning checks the intended state in your repository before deployment. CSPM checks the actual state of cloud accounts afterwards, including resources that were created by hand or changed outside of code. Teams that use both catch most problems early and still notice drift and manual changes later.

IaC security best practices

  1. Scan before apply. Check infrastructure changes on the branch, before terraform apply or kubectl apply run.
  2. Treat infrastructure code like application code. Use the same review process, the same branch rules and the same attention.
  3. Start with what is exposed. Public storage, open network rules and broad permissions have the largest blast radius.
  4. Use secure modules. Shared, reviewed modules with safe defaults prevent the same mistake in many places.
  5. Keep secrets out of IaC. Reference a secret manager instead of writing credentials into variables or manifests.
  6. Document exceptions. Sometimes a public bucket is intended, for example for a static website. Write down why.

IaC security in practice

A typical case looks like this: a developer adds a storage bucket for application logs to a Terraform module, copies a block from an older project and does not notice that it grants public read access and has no encryption configured. In a plan with dozens of resources, the two lines are easy to miss. An IaC scan on the branch reports both settings, the developer changes them in the same change, and the bucket never exists in an unsafe state.

The same pattern applies to containers. A Kubernetes manifest that runs a workload as root or without resource limits, or a Dockerfile that always pulls the newest base image, works fine in a test environment. The risk only shows when something goes wrong: a compromised container with root rights, or a build that suddenly behaves differently because the base image changed overnight.

Ownership matters as much as detection. Infrastructure code is often shared between a platform team, which maintains modules and clusters, and application teams, which use them. Agree on who handles which findings: problems in shared modules belong to the platform team, settings in a single service's manifest to the team that owns the service. Fixing a shared module once removes the finding from every project that uses it.

How to choose an IaC scanner

Check which file types are supported and whether they match what you use: Terraform, Kubernetes manifests, Dockerfiles, Helm charts or other formats. Ask how findings are presented: with file, severity and an explanation of the risk? Does the scanner run on the repositories you already have, without extra build steps? Are results shown next to other code findings such as dependencies and secrets? And is there a way to look at the deployed state as well, for example through CSPM?

Metrics for infrastructure code

  • Open IaC findings by severity per repository.
  • Findings in exposed resources such as public storage or open network rules.
  • Time to remediate from the first scan that reports a misconfiguration to the scan that no longer does.
  • Coverage: the share of infrastructure repositories that are scanned regularly.

IaC security in Obseria

In Obseria, IaC security is part of the Code Security scan of your GitHub repositories:

  • File types: Terraform files, Kubernetes manifests and Dockerfiles.
  • Findings: insecure configuration such as publicly accessible storage or missing encryption, shown in the IaC tab of Code Security.
  • One scan: the same run also checks dependencies for known vulnerabilities and searches for secrets, so infrastructure and application risks of a repository appear side by side.
  • Scan history: the Scans tab shows when a repository was checked and how the results changed.
  • Follow-up: important findings become tasks with priority and assignee in case management.
  • Deployed state: cloud security posture management in Obseria Security Enterprise checks cloud accounts continuously against security rules and benchmarks.

IaC security finds and explains misconfigurations; changing the files and applying them stays with your team. Only repositories on GitHub can be connected today.

FAQ

Questions about IaC security

Answers on features, setup and what is not included yet.
Contact us

IaC security FAQ

IaC security checks infrastructure-as-code files such as Terraform configurations, Kubernetes manifests and Dockerfiles for insecure settings before they are applied, for example public storage or missing encryption.

Terraform files, Kubernetes manifests and Dockerfiles in repositories connected through GitHub.

Insecure configuration such as publicly accessible storage and missing encryption. Findings are shown in the IaC tab of Code Security, next to dependency and secret findings of the same repository.

No. The scan reads your repositories through the GitHub connection. You start a scan in Code Security; no plugin in your build is required.

IaC scanning checks the intended state in your code before deployment. Cloud security posture management checks the actual state of cloud accounts afterwards, including manual changes. In Obseria, CSPM is part of Security Enterprise.

Secret scanning runs in the same scan and searches code and Git history for passwords, API keys and tokens, including those written into infrastructure files.

No. Obseria finds and explains misconfigurations. Changing the file, reviewing it and applying it stays with your team; larger fixes can be tracked as tasks.

Only Terraform, Kubernetes manifests and Dockerfiles are covered; other formats such as Helm charts, CloudFormation or Pulumi are not checked today. There are no custom policies, no automatic pull requests and no blocking of deployments. Only repositories on GitHub can be connected.

Contact

See IaC security in action

In 30 minutes we show you how Obseria works in your environment and answer your questions on setup, privacy and pricing.

  • No obligation, free of charge
  • Usually answered within one business day
  • Data in the EU
Your contact
Your contactObseria team

* Required field. By submitting, you agree to the processing of your details as described in our Privacy Notice