certdiag 2.7.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- certdiag-2.7.2/LICENSE +21 -0
- certdiag-2.7.2/MANIFEST.in +5 -0
- certdiag-2.7.2/PKG-INFO +145 -0
- certdiag-2.7.2/README.en.md +198 -0
- certdiag-2.7.2/README.md +856 -0
- certdiag-2.7.2/README.pypi.md +113 -0
- certdiag-2.7.2/certdiag/__init__.py +65 -0
- certdiag-2.7.2/certdiag/__main__.py +3 -0
- certdiag-2.7.2/certdiag/attrib.py +765 -0
- certdiag-2.7.2/certdiag/catalog.py +235 -0
- certdiag-2.7.2/certdiag/cli.py +616 -0
- certdiag-2.7.2/certdiag/collect.py +252 -0
- certdiag-2.7.2/certdiag/errors.py +23 -0
- certdiag-2.7.2/certdiag/evidence.py +255 -0
- certdiag-2.7.2/certdiag/manifest.py +274 -0
- certdiag-2.7.2/certdiag/manifest_cli.py +414 -0
- certdiag-2.7.2/certdiag/pe.py +134 -0
- certdiag-2.7.2/certdiag/probe.py +272 -0
- certdiag-2.7.2/certdiag/proxy.py +97 -0
- certdiag-2.7.2/certdiag/ps_text.py +201 -0
- certdiag-2.7.2/certdiag/psworker.py +473 -0
- certdiag-2.7.2/certdiag/report.py +327 -0
- certdiag-2.7.2/certdiag/revoke.py +119 -0
- certdiag-2.7.2/certdiag/rules.py +156 -0
- certdiag-2.7.2/certdiag/sarif.py +97 -0
- certdiag-2.7.2/certdiag/timestamp.py +213 -0
- certdiag-2.7.2/certdiag/ui.py +814 -0
- certdiag-2.7.2/certdiag/winverify.py +233 -0
- certdiag-2.7.2/certdiag.egg-info/PKG-INFO +145 -0
- certdiag-2.7.2/certdiag.egg-info/SOURCES.txt +61 -0
- certdiag-2.7.2/certdiag.egg-info/dependency_links.txt +1 -0
- certdiag-2.7.2/certdiag.egg-info/entry_points.txt +2 -0
- certdiag-2.7.2/certdiag.egg-info/requires.txt +4 -0
- certdiag-2.7.2/certdiag.egg-info/top_level.txt +1 -0
- certdiag-2.7.2/pyproject.toml +56 -0
- certdiag-2.7.2/setup.cfg +4 -0
- certdiag-2.7.2/tests/test_attrib.py +416 -0
- certdiag-2.7.2/tests/test_audit.py +108 -0
- certdiag-2.7.2/tests/test_benchmark.py +51 -0
- certdiag-2.7.2/tests/test_cli.py +102 -0
- certdiag-2.7.2/tests/test_cli_main.py +190 -0
- certdiag-2.7.2/tests/test_docs.py +86 -0
- certdiag-2.7.2/tests/test_evidence.py +152 -0
- certdiag-2.7.2/tests/test_gaps.py +322 -0
- certdiag-2.7.2/tests/test_gaps2.py +248 -0
- certdiag-2.7.2/tests/test_gaps3.py +166 -0
- certdiag-2.7.2/tests/test_guards.py +239 -0
- certdiag-2.7.2/tests/test_limits.py +82 -0
- certdiag-2.7.2/tests/test_manifest.py +201 -0
- certdiag-2.7.2/tests/test_modules.py +145 -0
- certdiag-2.7.2/tests/test_outputs.py +23 -0
- certdiag-2.7.2/tests/test_pe_structure.py +92 -0
- certdiag-2.7.2/tests/test_platform.py +61 -0
- certdiag-2.7.2/tests/test_probe.py +146 -0
- certdiag-2.7.2/tests/test_recheck.py +36 -0
- certdiag-2.7.2/tests/test_report_console.py +98 -0
- certdiag-2.7.2/tests/test_revoke.py +110 -0
- certdiag-2.7.2/tests/test_revoked_external.py +77 -0
- certdiag-2.7.2/tests/test_rules.py +44 -0
- certdiag-2.7.2/tests/test_sarif.py +92 -0
- certdiag-2.7.2/tests/test_timestamp.py +118 -0
- certdiag-2.7.2/tests/test_ui_http.py +102 -0
- certdiag-2.7.2/tests/test_windows_api.py +198 -0
certdiag-2.7.2/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 王亚麟
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
certdiag-2.7.2/PKG-INFO
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: certdiag
|
|
3
|
+
Version: 2.7.2
|
|
4
|
+
Summary: Windows code-signing and certificate-chain diagnostics: turn Authenticode errors into actionable root causes
|
|
5
|
+
Author: ihadimh
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/ihadimh/certdiag
|
|
8
|
+
Project-URL: Repository, https://github.com/ihadimh/certdiag
|
|
9
|
+
Project-URL: Documentation, https://github.com/ihadimh/certdiag#readme
|
|
10
|
+
Project-URL: Issues, https://github.com/ihadimh/certdiag/issues
|
|
11
|
+
Project-URL: Changelog, https://github.com/ihadimh/certdiag/releases
|
|
12
|
+
Keywords: windows,authenticode,code-signing,diagnostics,pki,winverifytrust,certificate-chain
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Environment :: Win32 (MS Windows)
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Intended Audience :: System Administrators
|
|
17
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: Topic :: Security
|
|
24
|
+
Classifier: Topic :: System :: Systems Administration
|
|
25
|
+
Requires-Python: >=3.10
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
License-File: LICENSE
|
|
28
|
+
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: build>=1.0; extra == "dev"
|
|
30
|
+
Requires-Dist: twine>=5.0; extra == "dev"
|
|
31
|
+
Dynamic: license-file
|
|
32
|
+
|
|
33
|
+
# certdiag
|
|
34
|
+
|
|
35
|
+
**Windows 代码签名与证书链诊断:把“签名无效”翻译成可操作的根因。**
|
|
36
|
+
|
|
37
|
+
`certdiag` 是一个**只读**诊断工具。它不修改信任库、不安装证书、不绕过签名校验,只回答:
|
|
38
|
+
|
|
39
|
+
- 这个文件是 `valid`、`invalid`,还是 `unknown`?
|
|
40
|
+
- 为什么?是文件被改、根证书缺失、证书过期、时间戳问题,还是吊销地址连不上?
|
|
41
|
+
- 下一步该看什么?
|
|
42
|
+
|
|
43
|
+
## 安装
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
pip install certdiag
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
要求:Windows + Python 3.10+。运行时无第三方依赖。
|
|
50
|
+
|
|
51
|
+
```powershell
|
|
52
|
+
certdiag C:\Windows\System32\cmd.exe
|
|
53
|
+
certdiag .\dist --fail-on invalid --json report.json
|
|
54
|
+
certdiag --ui
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
也可以直接:
|
|
58
|
+
|
|
59
|
+
```powershell
|
|
60
|
+
python -m certdiag <文件或目录>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## 它解决什么问题
|
|
64
|
+
|
|
65
|
+
Windows 经常只给一句“无法验证此文件的签名”。真实原因可能完全不同:
|
|
66
|
+
|
|
67
|
+
| 真实原因 | certdiag 的结论 |
|
|
68
|
+
|---|---|
|
|
69
|
+
| 文件内容被改 | `invalid` / hash 不匹配 |
|
|
70
|
+
| 根证书没装 | `invalid` / 不受信任的根 |
|
|
71
|
+
| 证书过期,但时间戳有效 | `valid` / `expired_with_timestamp_signature_ok` |
|
|
72
|
+
| 只是吊销服务器连不上 | `unknown` / `revocation_unreachable` |
|
|
73
|
+
| 文件没有嵌入签名,靠 `.cat` 目录签名 | `valid` / `catalog_only_trust` |
|
|
74
|
+
| PE 结构损坏,Windows 无法解析 | `unknown` / `suspected_pe_structure` |
|
|
75
|
+
|
|
76
|
+
**`unknown` 不是 `invalid`。** 这是这个工具最重要的设计原则。
|
|
77
|
+
|
|
78
|
+
## 主要能力
|
|
79
|
+
|
|
80
|
+
- **单文件归因**:嵌入式 Authenticode + 目录签名 + `WinVerifyTrust` 精确 HRESULT
|
|
81
|
+
- **证书链**:逐跳状态、过期、根信任、AIA 下载情况
|
|
82
|
+
- **吊销**:`off / cache / auto / online` 四档,查不到写“未检查”,不硬判无效
|
|
83
|
+
- **时间戳**:令牌验签、`messageImprint` 绑定、TSA 链/EKU;可选 `--tsa-revoke`
|
|
84
|
+
- **目录签名**:`.cat` 签名、`WINTRUST_CATALOG_INFO` 成员校验、签发者 EKU
|
|
85
|
+
- **PE 结构**:截断、异常节、可疑结构,区分“文件损坏”和“类型不支持”
|
|
86
|
+
- **批量/CI**:JSON、Markdown、SARIF、退出码 0/1/2/3、`--fail-on`
|
|
87
|
+
- **发布清单**:`verify-manifest` 验 minisign 签名 + 每文件 SHA256 + 现有归因
|
|
88
|
+
- **本机 UI**:`certdiag --ui`,拖拽文件/目录,结果一屏展开
|
|
89
|
+
|
|
90
|
+
## 三个结论怎么读
|
|
91
|
+
|
|
92
|
+
| 结论 | 含义 |
|
|
93
|
+
|---|---|
|
|
94
|
+
| `valid` | 签名这一项没发现问题;**不等于软件安全** |
|
|
95
|
+
| `invalid` | 在当前机器/时间/信任库下签名不成立;**不直接等于恶意** |
|
|
96
|
+
| `unknown` | 没查到/查不了;**不等于文件坏了** |
|
|
97
|
+
|
|
98
|
+
置信度 `high / medium / low` 表示证据强度,不是“安全评分”。
|
|
99
|
+
|
|
100
|
+
## 典型用法
|
|
101
|
+
|
|
102
|
+
```powershell
|
|
103
|
+
# 单个文件
|
|
104
|
+
certdiag app.exe
|
|
105
|
+
|
|
106
|
+
# 批量,JSON 报告
|
|
107
|
+
certdiag .\dist --json report.json
|
|
108
|
+
|
|
109
|
+
# CI 门禁:invalid 失败
|
|
110
|
+
certdiag .\dist --fail-on invalid
|
|
111
|
+
|
|
112
|
+
# 更严格:unknown 也失败
|
|
113
|
+
certdiag .\dist --strict --fail-on unknown
|
|
114
|
+
|
|
115
|
+
# 时间戳 + TSA 吊销
|
|
116
|
+
certdiag app.exe --revoke=off --tsa-revoke
|
|
117
|
+
|
|
118
|
+
# 验发布清单
|
|
119
|
+
certdiag verify-manifest release\manifest.json --pubkey release.pub --root release
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## 边界
|
|
123
|
+
|
|
124
|
+
- 不证明软件安全、没有漏洞
|
|
125
|
+
- 不修改信任库、不绕过签名校验
|
|
126
|
+
- 非 Windows 不能做 Authenticode 诊断;`verify-manifest --hash-only` 可在 Linux 上验哈希
|
|
127
|
+
- 目录签名的根指纹白名单、驱动安装上下文归因仍未完全闭环
|
|
128
|
+
- 默认不查 TSA 吊销;需要 `--tsa-revoke`
|
|
129
|
+
|
|
130
|
+
## 链接
|
|
131
|
+
|
|
132
|
+
- [GitHub 仓库](https://github.com/ihadimh/certdiag)
|
|
133
|
+
- [能力边界](https://github.com/ihadimh/certdiag/blob/main/docs/CAPABILITIES.md)
|
|
134
|
+
- [置信度与证据](https://github.com/ihadimh/certdiag/blob/main/docs/CONFIDENCE.md)
|
|
135
|
+
- [已知问题](https://github.com/ihadimh/certdiag/blob/main/docs/KNOWN_ISSUES.md)
|
|
136
|
+
- [发布清单](https://github.com/ihadimh/certdiag/blob/main/docs/MANIFEST.md)
|
|
137
|
+
- [安全模型](https://github.com/ihadimh/certdiag/blob/main/SECURITY.md)
|
|
138
|
+
|
|
139
|
+
## 截图
|
|
140
|
+
|
|
141
|
+

|
|
142
|
+
|
|
143
|
+
## License
|
|
144
|
+
|
|
145
|
+
MIT
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="docs/icon-256.png" width="96" alt="certdiag">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">certdiag</h1>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
Windows code-signing and certificate-chain diagnostics · read-only · zero dependencies
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
<p align="center">
|
|
12
|
+
<a href="README.md">简体中文</a> · <b>English overview</b>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<a href="https://github.com/ihadimh/certdiag/actions/workflows/test.yml"><img src="https://github.com/ihadimh/certdiag/actions/workflows/test.yml/badge.svg" alt="tests"></a>
|
|
17
|
+
<img src="https://img.shields.io/badge/python-3.10%2B-blue" alt="python">
|
|
18
|
+
<img src="https://img.shields.io/badge/dependencies-0-brightgreen" alt="deps">
|
|
19
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green" alt="license"></a>
|
|
20
|
+
</p>
|
|
21
|
+
|
|
22
|
+
> Turn “why does Windows say this signature is invalid?” from guesswork into evidence-based triage.
|
|
23
|
+
|
|
24
|
+
**In one sentence**: give it a file, and it returns `valid / invalid / unknown` plus a one-line root cause, concrete advice, and the full evidence chain.
|
|
25
|
+
|
|
26
|
+
**Read-only by design**: it does not install roots, change the trust store, or bypass signature checks. See [SECURITY.md](SECURITY.md).
|
|
27
|
+
|
|
28
|
+

|
|
29
|
+
|
|
30
|
+
*▲ GUI: drop a file in, get the category, confidence, and evidence.*
|
|
31
|
+
|
|
32
|
+
## 30-second overview
|
|
33
|
+
|
|
34
|
+
| You want to… | certdiag gives you… |
|
|
35
|
+
|---|---|
|
|
36
|
+
| Explain one failed signature | `valid / invalid / unknown` + root cause + advice + evidence |
|
|
37
|
+
| Scan a folder | batch triage, summary, `--json` / `--sarif` |
|
|
38
|
+
| Verify a release set | `verify-manifest`: minisign-signed manifest + per-file SHA256 + existing attribution |
|
|
39
|
+
| Gate CI | exit codes 0/1/2/3; `--fail-on`, `--strict`, `--min-confidence` |
|
|
40
|
+
|
|
41
|
+
**What it does not do**: prove that software is safe or vulnerability-free; modify the trust store; bypass
|
|
42
|
+
signature validation. On non-Windows it cannot run Authenticode diagnostics (but
|
|
43
|
+
`verify-manifest --hash-only` can verify a manifest on Linux).
|
|
44
|
+
|
|
45
|
+
**Read the verdict correctly**:
|
|
46
|
+
|
|
47
|
+
- `valid` = the signature check found no problem. It does **not** mean “the software is safe”.
|
|
48
|
+
- `unknown` = we could not determine it. It does **not** mean “the file is broken”.
|
|
49
|
+
- `invalid` = the signature does not hold **on this machine, at this time, with this trust store**.
|
|
50
|
+
It does **not** automatically mean “malware”.
|
|
51
|
+
|
|
52
|
+
## What problem it solves
|
|
53
|
+
|
|
54
|
+
When Windows rejects a signature, it usually says something unhelpful:
|
|
55
|
+
|
|
56
|
+
```text
|
|
57
|
+
The digital signature of the object could not be verified.
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
You cannot tell whether:
|
|
61
|
+
|
|
62
|
+
- the file was modified,
|
|
63
|
+
- the root certificate is missing,
|
|
64
|
+
- the certificate expired,
|
|
65
|
+
- the timestamp is missing or invalid,
|
|
66
|
+
- or the machine simply cannot reach the CRL/OCSP endpoint.
|
|
67
|
+
|
|
68
|
+
The last case is the most confusing: the certificate is fine, the revocation endpoint is
|
|
69
|
+
blocked, and Windows reports an error that looks like a broken signature.
|
|
70
|
+
|
|
71
|
+
certdiag lays out the signature status, chain, revocation reachability, catalog coverage,
|
|
72
|
+
timestamp binding, and PE structure — then produces a root cause, advice, and a confidence level.
|
|
73
|
+
|
|
74
|
+
## Why it is different
|
|
75
|
+
|
|
76
|
+
| Design | What it means |
|
|
77
|
+
|---|---|
|
|
78
|
+
| Three-valued verdict | `unknown` is a first-class result; “not checked” never becomes “invalid” |
|
|
79
|
+
| Two data sources | PowerShell `Get-AuthenticodeSignature` (catalog fallback) + `WinVerifyTrust` HRESULT |
|
|
80
|
+
| Catalog detection | Distinguishes embedded signatures from catalog-only trust (`catalog_only_trust`) |
|
|
81
|
+
| Revocation modes | `off / cache / auto / online` are explicit; unchecked is reported as unchecked |
|
|
82
|
+
| PE structure checks | Section VA / SizeOfImage contradictions become `suspect_pe_structure`, not “bad signature” |
|
|
83
|
+
| Timestamp binding | Parses TSTInfo `messageImprint`, checks TSA EKU and builds the chain at `genTime` |
|
|
84
|
+
| Release manifests | Verifies a minisign-signed manifest and every file hash, then reuses per-file attribution |
|
|
85
|
+
|
|
86
|
+
Timestamp details: binding + TSA chain/EKU are verified, but TSA revocation is **not** checked yet,
|
|
87
|
+
so the confidence remains **medium**, not high.
|
|
88
|
+
|
|
89
|
+
## Quick start
|
|
90
|
+
|
|
91
|
+
### Portable (no Python install)
|
|
92
|
+
|
|
93
|
+
Download the [latest portable build](https://github.com/ihadimh/certdiag/releases/latest)
|
|
94
|
+
(~12 MB, includes a Python runtime). Unzip and double-click.
|
|
95
|
+
|
|
96
|
+
Verify the download with the `SHA256SUMS.txt` on the same release page; releases also include
|
|
97
|
+
Sigstore `.sigstore.json` bundles. See [docs/RELEASE_SIGNING.md](docs/RELEASE_SIGNING.md).
|
|
98
|
+
|
|
99
|
+
### From source
|
|
100
|
+
|
|
101
|
+
```powershell
|
|
102
|
+
git clone https://github.com/ihadimh/certdiag.git
|
|
103
|
+
cd certdiag
|
|
104
|
+
python -m certdiag C:\Windows\System32\cmd.exe
|
|
105
|
+
python -m certdiag --ui
|
|
106
|
+
python verify.py
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Requirements: Windows 10/11, PowerShell (built in), Python 3.10+; no third-party Python packages.
|
|
110
|
+
|
|
111
|
+
### CLI
|
|
112
|
+
|
|
113
|
+
```powershell
|
|
114
|
+
# single file
|
|
115
|
+
python -m certdiag .\app.exe
|
|
116
|
+
|
|
117
|
+
# batch, JSON, fail only on confirmed invalid
|
|
118
|
+
python -m certdiag .\dist --fail-on invalid --json report.json
|
|
119
|
+
|
|
120
|
+
# CI gate: unknown also fails
|
|
121
|
+
python -m certdiag .\dist --strict --fail-on unknown
|
|
122
|
+
|
|
123
|
+
# structured output for code scanning
|
|
124
|
+
python -m certdiag .\dist --sarif certdiag.sarif
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## Verify a release manifest
|
|
128
|
+
|
|
129
|
+
A valid Authenticode signature proves “some trusted certificate signed this file”. It does **not**
|
|
130
|
+
prove “this file belongs to this release”. `verify-manifest` adds that layer:
|
|
131
|
+
|
|
132
|
+
```powershell
|
|
133
|
+
certdiag verify-manifest .\release\manifest.json `
|
|
134
|
+
--pubkey .\release.pub `
|
|
135
|
+
--root .\release `
|
|
136
|
+
--json manifest-report.json
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
It checks:
|
|
140
|
+
|
|
141
|
+
1. the manifest's **minisign** signature against a pinned public key,
|
|
142
|
+
2. every file's `size` / `SHA256`,
|
|
143
|
+
3. each file through the existing Authenticode attribution,
|
|
144
|
+
4. missing / extra / signer-mismatch cases.
|
|
145
|
+
|
|
146
|
+
Exit codes:
|
|
147
|
+
|
|
148
|
+
| Code | Meaning |
|
|
149
|
+
|---|---|
|
|
150
|
+
| 0 | manifest signature verified and all files match |
|
|
151
|
+
| 1 | hash/missing/signer mismatch, bad manifest signature, or strict-extra failure |
|
|
152
|
+
| 2 | manifest unsigned (`--unsigned`) or signature file missing — unauthenticated, not “invalid” |
|
|
153
|
+
| 3 | usage error, bad manifest/path, minisign unavailable |
|
|
154
|
+
|
|
155
|
+
Manifest format, threat model, and false-positive boundaries: [docs/MANIFEST.md](docs/MANIFEST.md).
|
|
156
|
+
|
|
157
|
+
## Exit codes (single-file / batch)
|
|
158
|
+
|
|
159
|
+
| Code | Meaning |
|
|
160
|
+
|---|---|
|
|
161
|
+
| 0 | no confirmed invalid file |
|
|
162
|
+
| 1 | at least one confirmed invalid file |
|
|
163
|
+
| 2 | no invalid, but `--fail-on unknown` and at least one unknown |
|
|
164
|
+
| 3 | runtime error: path missing, no files, collection failure |
|
|
165
|
+
|
|
166
|
+
`--min-confidence high` can turn a medium/low `valid` into exit code 2.
|
|
167
|
+
|
|
168
|
+
## Limits and non-goals
|
|
169
|
+
|
|
170
|
+
- Does not prove software safety or absence of vulnerabilities.
|
|
171
|
+
- Does not detect API-layer bypasses (e.g. CVE-2013-3900 appended data); it reports evidence, not a
|
|
172
|
+
cryptographic re-implementation.
|
|
173
|
+
- Does not perform a full `WINTRUST_CATALOG_INFO` member validation; catalog coverage relies on
|
|
174
|
+
Windows' own result.
|
|
175
|
+
- TSA revocation is not checked yet.
|
|
176
|
+
- Batch scanning is serial today.
|
|
177
|
+
- Non-Windows: import and `--version` work, but Authenticode diagnostics return exit code 3.
|
|
178
|
+
|
|
179
|
+
See [docs/KNOWN_ISSUES.md](docs/KNOWN_ISSUES.md) and [docs/CAPABILITIES.md](docs/CAPABILITIES.md).
|
|
180
|
+
|
|
181
|
+
## Documentation
|
|
182
|
+
|
|
183
|
+
Selected high-value docs now have English translations; the rest are currently in Chinese.
|
|
184
|
+
|
|
185
|
+
- [Capabilities and limits](docs/en/CAPABILITIES.md)
|
|
186
|
+
- [Confidence and boundaries](docs/en/CONFIDENCE.md)
|
|
187
|
+
- [English docs index](docs/en/README.md)
|
|
188
|
+
- [Known issues](docs/KNOWN_ISSUES.md)
|
|
189
|
+
- [Error catalog](docs/en/ERRORS.md)
|
|
190
|
+
- [Manifest verification](docs/en/MANIFEST.md)
|
|
191
|
+
- [GitHub Action](docs/GITHUB_ACTION.md)
|
|
192
|
+
- [Release signing](docs/RELEASE_SIGNING.md)
|
|
193
|
+
- [Benchmark corpus](docs/BENCHMARK.md)
|
|
194
|
+
- [Roadmap](docs/ROADMAP.md)
|
|
195
|
+
|
|
196
|
+
## License
|
|
197
|
+
|
|
198
|
+
MIT. See [LICENSE](LICENSE).
|