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.4.tar.gz (136.5 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.4-py3-none-any.whl (156.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tfgaurd_engine-1.0.4.tar.gz
  • Upload date:
  • Size: 136.5 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.4.tar.gz
Algorithm Hash digest
SHA256 f0e0922518b2812fe79a0f5c5209793aa2faebd24e719434ff6337435b924ea0
MD5 36beec07b2f89ff43382c077bb0af93b
BLAKE2b-256 a6b684bac4ce1794e945a57ddb64099a65ffa0f21bb00bb7e3868c36aaf1f7a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tfgaurd_engine-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 156.5 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 98523966ea81909c538a4ca017c9590e868a763780cd0444488164297f801e57
MD5 041eb70e397dc82e877d8a41d86d6ae9
BLAKE2b-256 5ee0a0fe644709021b18bc89a7861e8fcfd4577c1a11e63ef84a444da51143f6

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