The first tool that instantly tells you: "What sensitive data is being exposed right now by any process on this machine?"
Every security scanner in the world checks:
- โ Ports
- โ CVEs
- โ Configuration files
- โ Filesystem
But NO ONE checks:
What secrets can be extracted immediately by an attacker who gets ANY access (even low-privileged)?
This is exactly how real breaches happen. An attacker gets limited access and immediately extracts credentials from running processes.
- Zero Installation Footprint - Single binary, no dependencies
- Non-Destructive - Read-only operations, safe for production
- Real-Time Detection - Scans live processes instantly
- Comprehensive Coverage - 20+ secret patterns, privilege checks, network exposure
- Clean Output - Human-readable reports with remediation advice
- JSON Support - Machine-readable output for automation
- Database passwords (
DB_PASSWORD,MYSQL_PASSWORD) - Cloud credentials (AWS, Azure, GCP)
- API keys and tokens
- JWT signing secrets
- OAuth client secrets
- SMTP credentials
- Service-specific tokens (GitHub, Slack, Stripe)
- Database connection strings with embedded credentials
- Passwords passed as CLI arguments
- Bearer tokens in curl commands
- API keys in URLs
- Git operations with credentials
- Docker commands with secrets
- Processes running as root unnecessarily
- Elevated privileges on user applications
- Services binding to all interfaces (0.0.0.0)
- Unnecessary public exposure
- Go 1.21 or higher (for building from source)
- Linux OS (primary support)
- Windows support (partial)
# Clone or download the source
cd traceless
# Build the binary
go build -o traceless
# Optional: Install system-wide
sudo mv traceless /usr/local/bin/# Build for current platform
go build -ldflags "-s -w" -o traceless
# Build for Linux (from any platform)
GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o traceless-linux
# Build for multiple platforms
./build.shTraceLess requires explicit authorization acknowledgment:
export TRACELESS_AUTHORIZED=yesThis confirms you have permission to scan the target system.
# Scan all processes
./traceless
# Scan specific PID
./traceless -pid 1234
# Verbose output
./traceless -v
# JSON output for automation
./traceless -json > report.jsonโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ TraceLess v1.0.0 โ
โ Real-Time Process Exposure Detection Tool โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๏ธ AUTHORIZATION REQUIRED โ ๏ธ
This tool is for AUTHORIZED security testing only
๐ Starting process exposure scan...
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ EXPOSURE #1 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ด Severity: CRITICAL
๐ฆ Process: node (PID: 12345)
๐ Type: ENVIRONMENT_VARIABLE
๐ Issue: Database password exposed in environment variable
๐พ Value: DB_P***REDACTED***word
๐ฌ Evidence:
DB_PASSWORD=secr***REDACTED***1234
๐ก Remediation:
Use secure secret management (Vault, AWS Secrets Manager, etc.)
Never pass secrets via environment variables in production
TraceLess is designed for:
โ Security Auditing - Assess your own systems for credential exposure โ Penetration Testing - Authorized security assessments with proper engagement letters โ DevSecOps - CI/CD pipeline security checks โ Security Hardening - Find and fix misconfigurations before attackers do โ Compliance Audits - Verify secrets management practices โ CTF Challenges - Competitive security exercises โ Security Research - Academic and professional security research โ Education - Learning about process security
โ Unauthorized Use is Illegal - Never run this tool without permission
TraceLess is a lightweight scanner that:
- Enumerates Processes - Reads
/proc/to find all running PIDs - Safe Metadata Collection - Reads only non-destructive files:
/proc/<pid>/environ- Environment variables/proc/<pid>/cmdline- Command line arguments/proc/<pid>/status- Process status and privileges/proc/<pid>/comm- Process name
- Pattern Matching - Applies 30+ detection rules
- Risk Assessment - Assigns severity levels (CRITICAL/HIGH/MEDIUM/LOW)
- Actionable Reporting - Provides specific remediation guidance
TraceLess is zero-config by default, but you can customize detection:
Edit patterns.go to add custom secret patterns:
{
Name: "CUSTOM_SECRET",
Description: "Custom application secret exposed",
Severity: "HIGH",
KeyPattern: regexp.MustCompile(`(?i)MY_APP.*SECRET`),
ValueCheck: isNonEmpty,
}TRACELESS_AUTHORIZED=yes- Required authorization acknowledgment
0- No exposures found (clean system)1- Exposures detected or scan error
- Requires appropriate permissions to read
/proc/ - Does NOT require root for most scans
- May need elevated privileges to scan all processes
- Read-only operations - cannot modify processes
- โ Does not scan files or filesystem
- โ Does not modify any processes
- โ Does not kill or interfere with running processes
- โ Does not perform network scanning
- โ Does not exploit vulnerabilities
Contributions welcome! Please:
- Fork the repository
- Create a feature branch
- Add tests for new patterns
- Submit a pull request
MIT License - See LICENSE file for details
IMPORTANT: This tool is for authorized security testing only.
- You must have explicit permission to scan any system
- Unauthorized access to computer systems is illegal
- Users are responsible for compliance with all applicable laws
- The authors assume no liability for misuse
By using TraceLess, you agree to:
- Only scan systems you own or have written authorization to test
- Comply with all applicable laws and regulations
- Use the tool responsibly and ethically
Created for defensive security and authorized security testing.
Inspired by real-world breach techniques where attackers extract credentials from running processes.
Found a bug or have a feature request?
- Open an issue on GitHub
- Provide OS version, Go version, and reproduction steps
- For security vulnerabilities, please report privately
TraceLess is an excellent tool for learning about:
- Process security on Linux
- Secrets management best practices
- Common credential exposure patterns
- Defensive security techniques
- Security auditing methodologies
Remember: With great power comes great responsibility. Use TraceLess ethically and legally.