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

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

pip install tfguard

2. Run an Anonymous Local Scan

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

tfguard 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 TFGuard Dashboard.

export TFGUARD_API_KEY="your_key_here"
tfguard 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 TFGuard 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 tfguard
      - run: tfguard scan . --fail-on CRITICAL
        env:
          TFGUARD_API_KEY: ${{ secrets.TFGUARD_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

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


Built with ❤️ by the TFGuard 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.1.tar.gz (134.2 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.1-py3-none-any.whl (154.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tfgaurd_engine-1.0.1.tar.gz
  • Upload date:
  • Size: 134.2 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.1.tar.gz
Algorithm Hash digest
SHA256 9cfa4fc3c18f554907149e98e872260e29f3edd946c8e6538e6d24d6cc6cc184
MD5 84f26ee1694cd4b5cf9bbee69625edea
BLAKE2b-256 07aa102fad3f5e6f7468b0348dda36197c408140d0ee2bbd6b7e5ca4036e91e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tfgaurd_engine-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 154.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d6c335fd3c86641de4b0d333163d4a5bb5945ffeb21bef1844edaecdb6e671aa
MD5 157b7fa66cac207b40230a66ed7887b4
BLAKE2b-256 d9aaec520cb18a3816ecad5a0300dfa4f687261894a44ed2f82ee67388d628be

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