Skip to main content

Secure, local-first Terraform security scanner with Cloud reporting.

Project description

TFGaurd 🛡️

The Terraform Security Scanner that Respects Your Code.

TFGaurd is a Privacy-First, Local-First security engine for Terraform. Unlike traditional SaaS scanners, TFGaurd ensures your sensitive Infrastructure-as-Code (HCL) never leaves your machine or CI/CD runner.

By running the core engine locally and syncing only high-level metadata (violation counts) to your cloud dashboard, you get enterprise-grade security observability with zero privacy trade-offs.


🚀 Quick Start (1-Minute)

1. Install via Pip

TFGaurd requires Python 3.8+ and installs as a standalone CLI.

pip install tfgaurd-engine

2. Run an Anonymous Local Scan

Scan your current directory immediately. This uses our free-tier AWS security engine (112+ rules). No account or data-sync required.

tfgaurd scan .

3. Unlock 1,200+ Premium Rules (GCP, Azure, OCI)

Provide your API key to download the Secure In-Memory Rule Bundle (~700+ proprietary rules) and sync metadata to your TFGaurd Dashboard.

export TFGAURD_API_KEY="your_key_here"
tfgaurd scan .

🔒 Our Privacy Guarantee

  1. Local-Only Parsing: Your raw HCL code is parsed and analysed on your local machine. We never see your variable values, architecture, or credentials.
  2. Metadata-Only Ingestion: Cloud sync is strictly limited to high-level results (e.g., "3 CRITICAL violations found").
  3. Secure In-Memory Rule Streaming: Premium rules are delivered as an encrypted blob that is decrypted in RAM and executed in an isolated namespace. Rule logic is never written to disk.

🔄 CI/CD Integration

Integrate TFGaurd into your automated pipelines in seconds.

GitHub Actions Example

name: Security Scan
on: [push]
jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: pip install tfgaurd-engine
      - run: tfgaurd scan . --fail-on CRITICAL
        env:
          TFGAURD_API_KEY: ${{ secrets.TFGAURD_API_KEY }}

✨ Features

  • 1,200+ Security Rules: Comprehensive coverage for AWS, Azure, GCP, and OCI.
  • Portability: A 50KB zero-dependency CLI that runs anywhere (Laptop, CI/CD, Air-gapped VPCs).
  • Sub-Second Performance: Instant security feedback for small to medium environments.
  • Metadata Sync: Track your security posture trends on tfgaurd.com without exposing source code.

📜 License

TFGaurd is licensed under the MIT License. See LICENSE for details.


Built with ❤️ by the TFGaurd Team. View Project Website | Read Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tfgaurd_engine-1.0.2.tar.gz (135.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tfgaurd_engine-1.0.2-py3-none-any.whl (155.4 kB view details)

Uploaded Python 3

File details

Details for the file tfgaurd_engine-1.0.2.tar.gz.

File metadata

  • Download URL: tfgaurd_engine-1.0.2.tar.gz
  • Upload date:
  • Size: 135.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for tfgaurd_engine-1.0.2.tar.gz
Algorithm Hash digest
SHA256 7f7c763b1feb1ab3758fc5a9fea6ddac32b91c57b2badff1be33691feca0ea18
MD5 a29dc7c0bdb6c69827a5f152556c8993
BLAKE2b-256 ead5d183fb6583974932ab22332470c72a1ece3c84f63bf637f0f73aceaf7ee0

See more details on using hashes here.

File details

Details for the file tfgaurd_engine-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: tfgaurd_engine-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 155.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for tfgaurd_engine-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1e2e5d8fb1df73c715c66bcfdc1699315f633d7e19850cc73aac7fad03fd056a
MD5 22cb0ff3d0f797a80f925a3badc4728f
BLAKE2b-256 66ebdcda933dd7a33abc9458454dcc17aba76349b291e364c9f076d448af8902

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page