Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
titus — 高性能机密扫描器。命令行工具、Go 语言库、Burp Suite 扩展和 Chrome 扩展。487条检测规则,支持实时凭据验证。 | Kitploit
工具/GitHubGitHub/praetorian-inc/titus
静态分析漏洞扫描器容器安全Web代理与拦截代码分析渗透测试DevSecOps秘密检测供应链安全
GitHubpraetorian-inc/titus

titus

高性能机密扫描器。命令行工具、Go 语言库、Burp Suite 扩展和 Chrome 扩展。487条检测规则,支持实时凭据验证。

667755122小时4分前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
查看仓库网站
分享
Titus - 高性能机密扫描器,适用于源代码、git 历史和二进制文件

Titus:高性能机密扫描器

Go License CI

Titus 是一款高性能机密扫描器,可检测源代码、文件和 git 历史中的凭据、API 密钥和令牌。它内置 487 条检测规则,覆盖数百种服务和凭据类型,规则源自 NoseyParker 和 Kingfisher。Titus 可作为 CLI、Go 库、Burp Suite 扩展和 Chrome 浏览器扩展运行——它们共享同一套检测引擎和规则集。

Titus 专为安全工程师、渗透测试人员和 DevSecOps 团队打造,将 Hyperscan/Vectorscan 加速的正则匹配与实时凭据验证相结合,在整个代码库中查找并验证泄露的机密。

目录

  • 为什么选择 Titus?
  • 安装
  • 快速开始
  • 扫描选项
  • 发现评分
  • Go 库
  • Burp Suite 扩展
  • 浏览器扩展
  • 从源码构建
  • 贡献
  • 许可证

为什么选择 Titus?

  • 快速机密扫描:在可用时由 Hyperscan/Vectorscan 加速正则匹配,并提供纯 Go 回退方案,以便在任何平台上移植。
  • 广泛的凭据检测覆盖:487 条规则可检测 AWS、GCP、Azure、GitHub、Slack、数据库、CI/CD 系统以及数百种其他服务的 API 密钥、令牌和凭据。
  • 实时机密验证:检测到的机密会针对其来源 API 进行检查,以确认其是否有效,从而减少误报并优先处理修复工作。
  • 基于风险的严重性评分:每个发现都会获得一个数值评分(0–100)和严重性等级(info → critical)。评分会根据静态规则元数据、代码可访问性上下文以及衡量凭据真实影响范围的实时 API 调用进行调整——因此最危险的发现总是最先浮现。
  • 容器镜像扫描:直接从任何注册表、tarball 或 OCI 布局目录扫描 Docker 和 OCI 镜像——无需 Docker 守护进程或二进制文件。
  • 适用于各种工作流的多重接口:可从 CLI 扫描、作为 Go 库嵌入、在 Burp Suite 中被动扫描 HTTP 流量,或在应用安全测试期间扫描 Chrome 中的网页。
  • 二进制文件提取:从 Office 文档、PDF、归档文件(zip、tar、7z)、移动应用(APK、IPA)、浏览器扩展等中提取并扫描机密。

安装

从 Releases 页面下载预构建的二进制文件,或从源码构建:

make build

二进制文件将位于 dist/titus。

快速开始

# Scan a file for secrets
titus scan path/to/file.txt

# Scan a directory for leaked credentials
titus scan path/to/directory

# Scan a public GitHub repository (no token needed)
titus scan github.com/org/repo

# Scan a public GitLab project (no token needed)
titus scan gitlab.com/namespace/project

# Scan git history for secrets in past commits
titus scan --git path/to/repo

# Scan a Docker / OCI image (pulled from a registry — no docker daemon required)
titus scan --docker alpine:latest

# Validate detected secrets against source APIs
titus scan path/to/code --validate

结果会写入数据存储(默认为 titus.ds)并打印到控制台。

子命令

Titus 将其功能组织为以下专注的子命令:

titus analyze # Analyze a credential on demand — detect type, validate, score, and enumerate resources
titus enum    # Enumerate remote services for secrets
titus explore # Interactively explore scan results
titus report  # Generate a report from scan results
titus rules   # Manage detection rules
titus scan    # Scan a target for secrets
titus serve   # Run as streaming server for Burp extension integration
titus version # Show version information

每个子命令都接受 --help 以查看其自身的标志。早于 titus enum <provider> 的顶层 titus <provider> 形式仍然可用,但它们是隐藏且已弃用的,而非别名,因此它们被列在生成的参考文档中,而不是这里。

完整参考——每个子命令、别名和标志,包括那些从 --help 中隐藏的——已生成到 docs/CLI.md。

扫描选项

GitHub 与 GitLab 扫描

直接通过 URL 扫描公共仓库——无需 API 令牌:

# Scan a GitHub repository
titus scan github.com/kubernetes/kubernetes

# Scan a GitLab project
titus scan gitlab.com/gitlab-org/cli

# Full URLs work too
titus scan https://github.com/org/repo
titus scan https://gitlab.com/namespace/project.git

对于组织范围或用户范围的扫描,请使用专用子命令:

# Scan all public repos in a GitHub org
titus github --org kubernetes

# Scan all repos in a GitHub org with a token (private repos + higher rate limits)
titus github --org kubernetes --token $GITHUB_TOKEN

# Scan all repos for a GitHub user
titus github --user octocat

# Scan all projects in a GitLab group
titus gitlab scan --group mygroup --token $GITLAB_TOKEN

# Scan a single repo with git history (finds deleted secrets)
titus github scan owner/repo --git

对于公共仓库,令牌是可选的。设置 GITHUB_TOKEN 或 GITLAB_TOKEN(或使用 --token)以访问私有仓库并获得更高的 API 速率限制。

Docker / OCI 镜像扫描

直接扫描容器镜像——无需 docker 守护进程,无需 docker 二进制文件。Titus 通过 HTTPS 直接从任何 OCI 注册表拉取镜像(使用 ~/.docker/config.json 中的凭据),或从本地 docker save 压缩包或 OCI 镜像布局目录读取镜像。然后它会扫描镜像清单/配置元数据以及每一层中的每个常规文件,包括被后续层删除的较低层文件(因为机密信息可能仍可从镜像历史中恢复)。

# Pull from a registry and scan
titus scan --docker alpine:latest
titus scan docker://ghcr.io/owner/repo:tag

# Scan an image saved to a tarball:
#   docker save my-app:latest -o my-app.tar
#   podman save my-app:latest -o my-app.tar
titus scan --docker ./my-app.tar

# Scan an OCI image layout directory:
#   docker buildx build --output type=oci,dest=./img/ .
#   skopeo copy docker://my-app:latest oci:./img:latest
titus scan --docker ./img/

身份验证使用您现有的 Docker / Podman 配置(~/.docker/config.json、${XDG_RUNTIME_DIR}/containers/auth.json)。需要重新登录的私有镜像仓库应首先使用 docker login(或 podman login,或 crane auth login)进行身份验证——titus 不会提示输入凭据。

查看扫描结果

使用 report 重新读取之前扫描的发现结果:

# Human-readable summary of detected secrets
titus report

# JSON output for programmatic processing
titus report --format json

# SARIF output for CI/CD integration with GitHub Advanced Security
titus report --format sarif

# Report from a specific datastore
titus report --datastore path/to/titus.ds

你还可以在扫描时使用 --format 控制输出格式:

titus scan path/to/code --format json

验证检测到的密钥

在扫描期间传递 --validate 以针对其源 API 检查检测到的密钥:

titus scan path/to/code --validate

验证并发运行(默认 4 个 worker,可通过 --validate-workers 配置),并将每个发现标记为已确认、已否认或未知。

过滤检测规则

# List all available detection rules
titus rules list

# Scan with only specific rules (e.g., AWS and GCP credentials)
titus scan path/to/code --rules-include "aws,gcp"

# Exclude rules by pattern
titus scan path/to/code --rules-exclude "kingfisher.generic"

# Use a custom rules file for organization-specific secrets
titus scan path/to/code --rules path/to/custom-rules.yaml

# Opt in to rules marked noisy: true (high false-positive rate, off by default)
titus scan path/to/code --include-noisy

标记为 visible: false 的规则是辅助规则,用于捕获其他规则的上下文,例如客户端 ID、账户名或主机,而非机密。它们的模式仍会运行,但其匹配结果永远不会被报告——无论是通过 CLI 还是 Go 库,即使显式选择了该规则也是如此。

从二进制文件中提取机密

Titus 可以从二进制文件格式中提取文本,并扫描其中的机密内容:

# Extract and scan all supported binary formats
titus scan path/to/files --extract=all

# Target specific formats
titus scan path/to/files --extract=xlsx,docx,pdf,zip

支持的格式包括 Office 文档(xlsx、docx、pptx、odp、ods、odt)、PDF、Jupyter notebooks、SQLite 数据库、电子邮件(eml、rtf)以及归档文件(zip、tar、tar.gz、jar、war、ear、apk、ipa、crx、xpi、7z)。归档文件会被递归提取,并受可配置的深度和大小限制约束。

# Tune extraction limits for large codebases
titus scan path/to/files --extract=all \
  --extract-max-size 10MB \
  --extract-max-total 100MB \
  --extract-max-depth 5

对于 SQLite 数据库,Titus 会从所有表中提取文本(默认每张表 1000 行)。使用 --sqlite-row-limit 进行调整:

# Full dump of all SQLite tables (no row limit)
titus scan path/to/files --extract=all --sqlite-row-limit 0

# Custom row limit per table
titus scan path/to/files --extract=all --sqlite-row-limit 5000

发现评分

Titus 生成的每个发现都带有 0–100 的数值评分和严重性等级:

评分严重性
0–20info
21–40low
41–60medium
61–80high
81–100critical

评分从规则的 base_score 开始,并通过修饰符进行调整——这些条件根据已知的凭据信息来提高或降低评分:

下载工具