National Cyber Warfare Foundation (NCWF)login

titus for high-performance secrets discovery in code, git history, and container images


0 user ratings
2026-10-25 01:31:18
milo
Red Team (CNA)
"titus

titus is a Go-based secrets scanner that detects and validates leaked credentials across source code, git history, binaries, and OCI images, built for authorized security assessments and DevSecOps pipelines.








Toolpraetorian-inc/titus — high-performance secrets scanner available as a CLI, Go library, Burp Suite extension, and Chrome extension
CategoryCredential and secrets detection (appsec / devsecops)
Primary UseFinding and validating leaked API keys, tokens, and credentials in codebases, git history, binary documents, and Docker/OCI images during authorized audits
Safe UseIntended for security engineers and penetration testers working on codebases and infrastructure they are explicitly authorized to assess, plus defensive pre-commit and CI/CD hygiene workflows
Telemetry NoteThe --validate and --score-scope modes make outbound API calls to credential providers (e.g., AWS STS/IAM, GitHub API), which appear in provider-side audit logs — defenders can alert on these validation probes as a signal of scanning activity

titus is Praetorian's open-source answer to the secrets-scanning problem, and its distinguishing bet is that one detection engine should serve every workflow a security team touches. The same rule set and matching core power four interfaces: a CLI, an importable Go library, a Burp Suite extension that passively inspects HTTP traffic, and a Chrome browser extension for application security testing. That architectural decision matters for teams who currently maintain a scanner for CI, another for pentest laptops, and a third for code review — titus collapses those into a single, consistent source of detection truth.


The detection corpus is substantial: 487 rules covering hundreds of services and credential types, drawn from two lineage projects Praetorian maintains or borrows from — NoseyParker and MongoDB's Kingfisher. Coverage spans the usual cloud suspects (AWS, GCP, Azure), developer platforms like GitHub and Slack, database credentials, and CI/CD systems. The rules are also manageable at runtime: titus rules list enumerates them, include/exclude patterns like --rules-include "aws,gcp" narrow scope, and a custom YAML rules file (--rules path/to/custom-rules.yaml) lets organizations fingerprint their own proprietary secret formats — a feature most commercial scanners gate behind paid tiers.


Performance is where the README leads its pitch. Regex matching is accelerated by Intel's Hyperscan (or Vectorscan on non-x86 platforms), with a pure-Go fallback for portability when those libraries aren't available. This is a pragmatic design: teams on standard Linux get SIMD-accelerated multi-pattern matching, while macOS and Windows users still get a working binary. For anyone who has watched a regex-heavy scanner crawl through a monorepo, the choice of Hyperscan signals that titus is engineered for whole-organization sweeps, not just single-file checks.


What elevates titus above pattern matching is its scoring and validation pipeline. Every finding receives a 0–100 score mapped to severity tiers from info to critical, starting from each rule's base_score and then adjusted by modifiers. One modifier is particularly thoughtful: code-accessibility context, auto-detected from the git remote, applies a -25 penalty for private-repository findings versus public ones — because an exposed key in a public repo has a categorically different blast radius. This mirrors how experienced assessors triage findings manually, encoded into the tool.


The --validate flag goes further, checking detected secrets against their source APIs and marking each finding as confirmed, denied, or unknown, with configurable concurrency via --validate-workers. Layered on top, --score-scope makes live API calls — AWS STS/IAM and the GitHub API for supported types — to measure the real privilege attached to a credential, including IAM policy enumeration for AWS and repository permission checks for GitHub fine-grained PATs. This is the difference between "a string that looks like an AWS key" and "an active administrator credential," which is the question every report reader actually asks. The extension points are documented too: YAML scorers ship for AWS, GitHub PATs, and Slack tokens, with a Go SDK path for custom scorers.


Input surface coverage is unusually broad. Beyond source files and directories, titus scan --git walks full repository history to recover secrets deleted in past commits — a classic audit gap. It clones and scans public github.com and gitlab.com projects by URL without any token, and supports org-wide or user-wide enumeration with GITHUB_TOKEN or GITLAB_TOKEN for private access and rate-limit relief. On the container side, --docker pulls images straight from any OCI registry over HTTPS, reusing credentials from ~/.docker/config.json — no Docker daemon or docker binary required — and critically, it scans every regular file in every layer, including lower-layer files deleted by later layers, since those remain recoverable from image history. Tarballs from docker save and OCI layout directories are equally supported inputs.


Binary extraction rounds out the input matrix. --extract=all (or a targeted list like --extract=xlsx,docx,pdf,zip) pulls text from Office documents, PDFs, Jupyter notebooks, eml/rtf email, SQLite databases, and a long list of archive formats including apk, ipa, crx, and 7z, with recursive extraction bounded by configurable --extract-max-size, --extract-max-total, and --extract-max-depth limits. SQLite handling is granular — all tables are dumped with a default 1000-row cap adjustable via --sqlite-row-limit. This matters in practice because real-world leaks hide in exported spreadsheets, mobile app bundles, and mail archives far more often than in .env files.


The reporting path is built for pipeline integration. Results land in a datastore (titus.ds by default) that titus report re-reads later, with human-readable, JSON, and SARIF output formats — the latter plugging directly into GitHub Advanced Security code scanning. titus explore offers interactive triage of a datastore, and titus analyze performs on-demand single-credential analysis covering detection, validation, scoring, and resource enumeration, which is handy when triaging a reported leak rather than running a full scan.


Two operational caveats deserve attention from defenders and authorized users alike. First, validation and scope-scoring generate authenticated API calls against credential providers, meaning a scan of a large codebase with --validate --score-scope produces observable traffic in provider audit logs — appropriate for your own estate, and a detection signal blue teams can monitor for adversarial scanning. Second, rules marked noisy: true are excluded by default precisely because they carry high false-positive rates, and --include-noisy is an explicit opt-in; respecting that default during a client engagement saves considerable report noise.


For programmatic adoption, go get github.com/praetorian-inc/titus brings the same engine into custom Go tooling, and titus serve runs a streaming server mode backing the Burp extension — a clean separation that lets the extension UI stay thin while the CLI core does the heavy lifting. Prebuilt binaries are on the Releases page, or the repo builds from source with make build, placing the binary at dist/titus.


Positioned in the market, titus sits between lightweight regex linters and enterprise secret-management platforms, with its differentiators being the unified multi-interface architecture, live validation with blast-radius scoring, and the deep input coverage of git history, container layers, and binary formats. At roughly 700 stars and Apache-2.0 licensed, it is an active, CI-tested project from a well-known offensive security firm. For authorized penetration testers, internal red teams doing artifact review, and DevSecOps engineers wiring pre-merge scanning into CI, it is one of the more complete open-source options available — with the sensible defaults, SARIF support, and custom-rule extensibility to survive contact with a real organization's codebase.



Official project repository for praetorian-inc/titus.

Download Tool

Educational analysis for authorized security professionals. Use only in controlled, authorized environments.






Source: OffensiveSec
Source Link: https://www.offsecblog.com/2026/10/titus-for-high-performance-secrets.html


Comments
new comment
Nobody has commented yet. Will you be the first?
 
Forum
Red Team (CNA)



Copyright 2012 through 2026 - National Cyber Warfare Foundation - All rights reserved worldwide.