Skip to main content

PosturaNet

Fixes cloud security issues without breaking prod.

PosturaNet is a source-available remediation agent for AWS + Terraform. It takes a security finding, locates the owning Terraform and team, learns what actually uses the resource from flow logs and CloudTrail, records that as a behavior contract, and opens a pull request with the smallest fix that keeps every observed behavior working. It runs in your CI with a read-only role and never changes production.

It also checks every security group change, written by a person or an AI agent, against those contracts before it merges: a PosturaNet contract check on PRs, a step in any CI, and a hook for Claude Code and Cursor. See integrations/.

Status: early access (0.1.0). Security group ingress only.

Install

pip install posturanet            # add [mcp] for the MCP server: pip install "posturanet[mcp]"
posturanet init                   # prints the read-only IAM policy PosturaNet needs

Python 3.11+. The GitHub Action is Mihirajmera/posturanet/action@v0.1.0; see integrations/.

Try it (offline, no AWS)

From a clone of this repo:

pip install -e ".[dev]"
posturanet fix tests/fixtures/findings/sg_ssh_open.json --dry-run \
  --repo tests/fixtures/tf/basic --evidence-file tests/fixtures/flows/bastion_90d.json

This reads a synthetic finding, finds the Terraform block and its owner, builds a behavior contract from 89 days of synthetic flow logs, computes the smallest rule set with Z3, and prints the diff. Nothing is written.

With a read-only role: drop --dry-run to read flow logs and run terraform plan, then add --open-pr. Before changing security group ingress, run posturanet contract check --plan plan.json, or --source for an offline check of the edited HCL (exit 5 means BLOCK).

Project docs

Doc Purpose
docs/01_PRD.md Product requirements: what we build, with FR/NFR IDs
docs/02_ARCHITECTURE_AND_DATA.md Architecture, data models, schemas, queries
AGENTS.md Rules for AI coding agents, and for PosturaNet's own runtime agent
docs/04_DESIGN_SYSTEM.md CLI, PR, check-run and brand design system

License

Functional Source License 1.1, Apache 2.0 future license (FSL-1.1-ALv2).

  • You can use PosturaNet for free in your own company, read the code, change it and run it in your CI, including for clients if you provide services.
  • You can't offer it, or a product built from it, as a competing commercial product or service.
  • After two years each release becomes Apache 2.0, with no restrictions.

"PosturaNet" is a trademark: forks must use another name. Paid features ship separately in posturanet-pro.

Metadata

Release files for posturanet 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for posturanet 0.1.0
File Size Uploaded Provenance Actions
posturanet-0.1.0.tar.gz 93.1 kB With provenance Details for posturanet-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for posturanet 0.1.0
File Interpreter ABI Platform Actions
posturanet-0.1.0-py3-none-any.whl Python 3 none any Details for posturanet-0.1.0-py3-none-any.whl

Total release size: 176.7 kB

Release files / posturanet-0.1.0.tar.gz

Download URL posturanet-0.1.0.tar.gz
Size 93.1 kB
Tags Source
SHA-256 checksum
How to use checksums
807f3f3fdd19ee95f73b71f672fa364df2f3626f931908eaecccce840dc80e94
BLAKE2b-256 checksum
How to use checksums
6b84b338ece3e907b9f00540cf13c8f7f0bfe619e8c57502debda0498d1a1563
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / posturanet-0.1.0-py3-none-any.whl

Download URL posturanet-0.1.0-py3-none-any.whl
Size 83.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
513838675e14534c7469b03c92e0e291fe96e8b5a3b6b32edf501eb4db70917e
BLAKE2b-256 checksum
How to use checksums
0f460b123a42bca3081211ca43c5a87d9f54a6604b9dbbeb997fb489ffb247fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for posturanet 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for posturanet-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page