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
- Local-Only Parsing: Your raw HCL code is parsed and analysed on your local machine. We never see your variable values, architecture, or credentials.
- Metadata-Only Ingestion: Cloud sync is strictly limited to high-level results (e.g., "3 CRITICAL violations found").
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tfgaurd_engine-1.0.3.tar.gz.
File metadata
- Download URL: tfgaurd_engine-1.0.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65f5179f29784d1d9ce62c788d3f43563113faae27c3358b6c4bce19dcc570c7
|
|
| MD5 |
0a58413dfd1ef821504f721f580d153d
|
|
| BLAKE2b-256 |
236008a5b85004376e8f184fd04d28c9d68ddcf11b5264570d0cf09d86e33583
|
File details
Details for the file tfgaurd_engine-1.0.3-py3-none-any.whl.
File metadata
- Download URL: tfgaurd_engine-1.0.3-py3-none-any.whl
- Upload date:
- Size: 156.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe02d4f2ec13a07c8470974147ad4da3b4e3f31f6e476a161a7e99705b1af5f3
|
|
| MD5 |
476a9c55b2c9f78b874fbe2aca3044d3
|
|
| BLAKE2b-256 |
dda4a7267a68acab545f2bcecdc36c627a5af94ff770457955336a127b83506d
|