pi.override-attack
v1
Tiêm Câu Lệnh
Mức độ: high
CÒN HẠN
Áp dụng cho: Evergreen / All LLMs
Hạn rà soát: 2028-11-26
Nội dung có AI hỗ trợ · mô hình: tdguard-maintainers-i18n
·sha256:b9a899df32…bae220
Tóm tắt dễ hiểu
Cảnh báo các câu lệnh cố tình vô hiệu hóa hàng rào an toàn của trợ lý AI (kiểu tấn công ghi đè chỉ dẫn kinh điển).
Trường Kiểm Tra: prompt
ALERT_USEREXPLAIN_TO_USER
JSON kỹ thuật & Dấu hiệu
{
"id": "pi.override-attack",
"version": 1,
"category": "prompt_injection",
"severity": "high",
"lifecycleStatus": "ACTIVE",
"lifecycle": {
"status": "ACTIVE",
"appliesTo": "Evergreen / All LLMs",
"verifiedAt": 1795800000000,
"reviewDueAt": 1858872000000,
"replacedBy": "",
"retireReason": ""
},
"match": {
"field": "prompt",
"containsAny": [
"ignore previous instructions",
"disregard all prior rules"
]
},
"actions": [
"ALERT_USER",
"EXPLAIN_TO_USER"
],
"indicators": [],
"knowledge": null
}
dlp.cloud-key-paste-guard
v1
Chống Lộ Bí Mật
Mức độ: high
CÒN HẠN
Áp dụng cho: Evergreen / Cloud & SSH
Hạn rà soát: 2028-11-26
Nội dung có AI hỗ trợ · mô hình: tdguard-maintainers-i18n
·sha256:59269ff668…97013a
Tóm tắt dễ hiểu
Cảnh báo trước khi khóa bí mật đám mây hoặc khóa riêng SSH bị dán vào khung trò chuyện với dịch vụ AI bên ngoài.
Trường Kiểm Tra: prompt
ALERT_USERFLAG_PII_REDACT
JSON kỹ thuật & Dấu hiệu
{
"id": "dlp.cloud-key-paste-guard",
"version": 1,
"category": "data_leak_prevention",
"severity": "high",
"lifecycleStatus": "ACTIVE",
"lifecycle": {
"status": "ACTIVE",
"appliesTo": "Evergreen / Cloud & SSH",
"verifiedAt": 1795800000000,
"reviewDueAt": 1858872000000,
"replacedBy": "",
"retireReason": ""
},
"match": {
"field": "prompt",
"containsAny": [
"aws_secret_access_key",
"begin openssh private key"
]
},
"actions": [
"ALERT_USER",
"FLAG_PII_REDACT"
],
"indicators": [],
"knowledge": null
}
mcp.block-shell-exec
v1
Quản Trị MCP
Mức độ: critical
CÒN HẠN
Áp dụng cho: Evergreen / MCP Clients
Hạn rà soát: 2028-11-26
Nội dung có AI hỗ trợ · mô hình: tdguard-maintainers-i18n
·sha256:38ccb584cb…9ca912
Tóm tắt dễ hiểu
Ngăn trợ lý AI tự gọi công cụ thực thi lệnh hệ thống trực tiếp qua giao thức MCP khi chưa có xác nhận từ con người.
Trường Kiểm Tra: toolName
BLOCK_MCP_TOOLALERT_USER
JSON kỹ thuật & Dấu hiệu
{
"id": "mcp.block-shell-exec",
"version": 1,
"category": "enterprise_governance",
"severity": "critical",
"lifecycleStatus": "ACTIVE",
"lifecycle": {
"status": "ACTIVE",
"appliesTo": "Evergreen / MCP Clients",
"verifiedAt": 1795800000000,
"reviewDueAt": 1858872000000,
"replacedBy": "",
"retireReason": ""
},
"match": {
"field": "toolName",
"containsAny": [
"shell.exec_command",
"terminal.run_raw"
]
},
"actions": [
"BLOCK_MCP_TOOL",
"ALERT_USER"
],
"indicators": [],
"knowledge": null
}
threat.double-extension-invoice
v1
Phòng Lab Mã Độc
Mức độ: medium
CÒN HẠN
Áp dụng cho: Evergreen / Windows & Email
Hạn rà soát: 2028-11-26
Nội dung có AI hỗ trợ · mô hình: tdguard-maintainers-i18n
·sha256:e7f2af95d9…83ac6e
Tóm tắt dễ hiểu
Cảnh báo các tệp hóa đơn giả mạo giấu tệp thực thi nguy hiểm phía sau phần mở rộng kép giống tài liệu văn phòng.
Trường Kiểm Tra: filename
SUGGEST_QUARANTINEALERT_USER
JSON kỹ thuật & Dấu hiệu
{
"id": "threat.double-extension-invoice",
"version": 1,
"category": "threat_lab",
"severity": "medium",
"lifecycleStatus": "ACTIVE",
"lifecycle": {
"status": "ACTIVE",
"appliesTo": "Evergreen / Windows & Email",
"verifiedAt": 1795800000000,
"reviewDueAt": 1858872000000,
"replacedBy": "",
"retireReason": ""
},
"match": {
"field": "filename",
"endsWithAny": [
".pdf.exe",
".docx.exe",
".xlsx.scr"
]
},
"actions": [
"SUGGEST_QUARANTINE",
"ALERT_USER"
],
"indicators": [
{
"type": "filename",
"value": "invoice_2026.pdf.exe"
}
],
"knowledge": null
}
safety.webhook-exfil-beacon
v1
An Toàn Nội Dung
Mức độ: high
CÒN HẠN
Áp dụng cho: Evergreen / Outbound Web
Hạn rà soát: 2028-11-26
Nội dung có AI hỗ trợ · mô hình: tdguard-maintainers-i18n
·sha256:c85520a19c…8e82ce
Tóm tắt dễ hiểu
Cảnh báo khi dữ liệu không tin cậy trỏ tới địa chỉ webhook dùng một lần thường được lợi dụng để rò rỉ dữ liệu âm thầm.
Trường Kiểm Tra: url
SUGGEST_BLOCK_OUTBOUNDALERT_USER
JSON kỹ thuật & Dấu hiệu
{
"id": "safety.webhook-exfil-beacon",
"version": 1,
"category": "content_safety",
"severity": "high",
"lifecycleStatus": "ACTIVE",
"lifecycle": {
"status": "ACTIVE",
"appliesTo": "Evergreen / Outbound Web",
"verifiedAt": 1795800000000,
"reviewDueAt": 1858872000000,
"replacedBy": "",
"retireReason": ""
},
"match": {
"field": "url",
"containsAny": [
"webhook.site/exfil",
"requestbin.net/capture"
]
},
"actions": [
"SUGGEST_BLOCK_OUTBOUND",
"ALERT_USER"
],
"indicators": [
{
"type": "domain",
"value": "webhook[.]site"
},
{
"type": "domain",
"value": "requestbin[.]net"
}
],
"knowledge": null
}
cost.local-health-cache
v1
Tối Ưu Token & Vòng Lặp
Mức độ: low
CÒN HẠN
Áp dụng cho: Evergreen / 3-Tier Sidecar
Hạn rà soát: 2028-11-26
Nội dung có AI hỗ trợ · mô hình: tdguard-maintainers-i18n
·sha256:ca7f443795…f550f5
Tóm tắt dễ hiểu
Chuyển hướng các truy vấn kiểm tra trạng thái cục bộ sang bộ nhớ đệm Tầng 1 không tốn token thay vì gọi mô hình đám mây trả phí.
Trường Kiểm Tra: prompt
ROUTE_TO_TIER1_CACHEEXPLAIN_TO_USER
JSON kỹ thuật & Dấu hiệu
{
"id": "cost.local-health-cache",
"version": 1,
"category": "ai_cost_optimization",
"severity": "low",
"lifecycleStatus": "ACTIVE",
"lifecycle": {
"status": "ACTIVE",
"appliesTo": "Evergreen / 3-Tier Sidecar",
"verifiedAt": 1795800000000,
"reviewDueAt": 1858872000000,
"replacedBy": "",
"retireReason": ""
},
"match": {
"field": "prompt",
"containsAny": [
"tdguard_ping_status",
"tdguard_tier1_selftest"
]
},
"actions": [
"ROUTE_TO_TIER1_CACHE",
"EXPLAIN_TO_USER"
],
"indicators": [],
"knowledge": null
}
cost.retry-doom-loop-guard
v1
Tối Ưu Token & Vòng Lặp
Mức độ: medium
CÒN HẠN
Áp dụng cho: Evergreen / AI CLI & API
Hạn rà soát: 2028-11-26
Nội dung có AI hỗ trợ · mô hình: tdguard-maintainers-i18n
·sha256:cbff046ede…3b1cf4
Tóm tắt dễ hiểu
Ngắt vòng lặp AI gửi đi gửi lại cùng một lỗi đốt token API bằng cách kích hoạt Phanh Vòng Lặp Tầng 1 và tra kho tri thức cục bộ trước.
- Môi trường
- Any AI CLI or API agent connected via 3-tier sidecar
- Triệu chứng
- Agent sends the exact same failing command or huge repeated stack trace to a paid cloud model 3+ times in a row.
- Nguyên nhân gốc
- Stateless retry loops resend full context without checking local deterministic fixes or collapsing repeated log lines.
- Cách sửa đã kiểm chứng
- Enable Tier-1 Loop Breaker (threshold 3 in 5 min), compact duplicate consecutive log lines, and load only 1-2 matching entries via /llms.txt -> /feed/items/{id}.json.
- Cách kiểm tra lại
- Repeat the same normalized query 3 times in router-3tier and confirm decision LOOP_BREAKER_TRIGGERED with tokensUsed === 0.
Trường Kiểm Tra: prompt
ROUTE_TO_TIER1_CACHEEXPLAIN_TO_USER
JSON kỹ thuật & Dấu hiệu
{
"id": "cost.retry-doom-loop-guard",
"version": 1,
"category": "ai_cost_optimization",
"severity": "medium",
"lifecycleStatus": "ACTIVE",
"lifecycle": {
"status": "ACTIVE",
"appliesTo": "Evergreen / AI CLI & API",
"verifiedAt": 1795800000000,
"reviewDueAt": 1858872000000,
"replacedBy": "",
"retireReason": ""
},
"match": {
"field": "prompt",
"containsAny": [
"tdguard_loop_retry_exceeded",
"retry_same_error_3x"
]
},
"actions": [
"ROUTE_TO_TIER1_CACHE",
"EXPLAIN_TO_USER"
],
"indicators": [],
"knowledge": {
"environment": "Any AI CLI or API agent connected via 3-tier sidecar",
"symptom": "Agent sends the exact same failing command or huge repeated stack trace to a paid cloud model 3+ times in a row.",
"rootCause": "Stateless retry loops resend full context without checking local deterministic fixes or collapsing repeated log lines.",
"verifiedFix": "Enable Tier-1 Loop Breaker (threshold 3 in 5 min), compact duplicate consecutive log lines, and load only 1-2 matching entries via /llms.txt -> /feed/items/{id}.json.",
"verificationCheck": "Repeat the same normalized query 3 times in router-3tier and confirm decision LOOP_BREAKER_TRIGGERED with tokensUsed === 0.",
"commandPattern": "",
"commandRisk": "READ_ONLY",
"license": "CC0-1.0",
"sourceBasis": "SELF_AUTHORED_FIX"
}
}
fix.node24-windows-test-glob
v1
Ca Lỗi Thực Chiến
Mức độ: low
CÒN HẠN
Áp dụng cho: Node.js 24 / Windows
Hạn rà soát: 2027-05-26
Nội dung có AI hỗ trợ · mô hình: tdguard-maintainers-i18n
·sha256:9c3e177d50…3da82e
Tóm tắt dễ hiểu
Khắc phục lỗi trình chạy kiểm thử tích hợp của Node.js 24 trên Windows khi truyền tên thư mục thay vì mẫu glob đặt trong dấu ngoặc kép.
- Môi trường
- Node.js 24 on Windows (PowerShell 5.1 / cmd.exe)
- Triệu chứng
- Running `node --test tests/` fails or finds zero tests instead of executing test files inside the folder.
- Nguyên nhân gốc
- Windows shell does not expand POSIX directory arguments the same way as Linux shells in Node 24 test runner.
- Cách sửa đã kiểm chứng
- Pass an explicitly quoted file glob such as `node --test "tests/*.test.js"` inside package.json scripts so Node performs cross-platform glob expansion itself.
- Cách kiểm tra lại
- Run `npm test` on Windows and verify all `*.test.js` suites execute with exit code 0.
Mẫu lệnh tham số hóa
READ_ONLY
node --test "{TEST_DIR}/*.test.js"
Trường Kiểm Tra: command
EXPLAIN_TO_USER
JSON kỹ thuật & Dấu hiệu
{
"id": "fix.node24-windows-test-glob",
"version": 1,
"category": "engineering_fix",
"severity": "low",
"lifecycleStatus": "ACTIVE",
"lifecycle": {
"status": "ACTIVE",
"appliesTo": "Node.js 24 / Windows",
"verifiedAt": 1795800000000,
"reviewDueAt": 1811352000000,
"replacedBy": "",
"retireReason": ""
},
"match": {
"field": "command",
"containsAny": [
"node --test tests/",
"node --test test/"
]
},
"actions": [
"EXPLAIN_TO_USER"
],
"indicators": [],
"knowledge": {
"environment": "Node.js 24 on Windows (PowerShell 5.1 / cmd.exe)",
"symptom": "Running `node --test tests/` fails or finds zero tests instead of executing test files inside the folder.",
"rootCause": "Windows shell does not expand POSIX directory arguments the same way as Linux shells in Node 24 test runner.",
"verifiedFix": "Pass an explicitly quoted file glob such as `node --test \"tests/*.test.js\"` inside package.json scripts so Node performs cross-platform glob expansion itself.",
"verificationCheck": "Run `npm test` on Windows and verify all `*.test.js` suites execute with exit code 0.",
"commandPattern": "node --test \"{TEST_DIR}/*.test.js\"",
"commandRisk": "READ_ONLY",
"license": "CC0-1.0",
"sourceBasis": "SELF_AUTHORED_FIX"
}
}
fix.wrangler4-pages-create-force
v1
Ca Lỗi Thực Chiến
Mức độ: medium
CÒN HẠN
Áp dụng cho: Wrangler 4.x / Cloudflare Pages
Hạn rà soát: 2027-05-26
Nội dung có AI hỗ trợ · mô hình: tdguard-maintainers-i18n
·sha256:a460f0289c…634ce0
Tóm tắt dễ hiểu
Xử lý việc Wrangler v4 tự điều hướng `pages project create` sang Workers khi muốn tạo đúng dự án Cloudflare Pages tĩnh cổ điển.
- Môi trường
- Cloudflare Wrangler 4.x CLI deploying pure static Pages sites
- Triệu chứng
- `wrangler pages project create` delegates to Workers and aborts with missing static directory detection error.
- Nguyên nhân gốc
- Wrangler v4 routes new `pages project create` commands to Workers by default unless classic Pages creation is explicitly requested.
- Cách sửa đã kiểm chứng
- Pass `--force` once on `wrangler pages project create {NAME} --production-branch main --force`, then run subsequent `wrangler pages deploy` commands WITHOUT `--force`.
- Cách kiểm tra lại
- Confirm project creation prints the `.pages.dev` domain and `wrangler pages deploy {DIR} --project-name {NAME}` returns HTTP 200.
Mẫu lệnh tham số hóa
REVERSIBLE
wrangler pages project create {PROJECT_NAME} --production-branch main --force
Trường Kiểm Tra: command
EXPLAIN_TO_USER
JSON kỹ thuật & Dấu hiệu
{
"id": "fix.wrangler4-pages-create-force",
"version": 1,
"category": "engineering_fix",
"severity": "medium",
"lifecycleStatus": "ACTIVE",
"lifecycle": {
"status": "ACTIVE",
"appliesTo": "Wrangler 4.x / Cloudflare Pages",
"verifiedAt": 1795800000000,
"reviewDueAt": 1811352000000,
"replacedBy": "",
"retireReason": ""
},
"match": {
"field": "command",
"containsAny": [
"wrangler pages project create"
]
},
"actions": [
"EXPLAIN_TO_USER"
],
"indicators": [],
"knowledge": {
"environment": "Cloudflare Wrangler 4.x CLI deploying pure static Pages sites",
"symptom": "`wrangler pages project create` delegates to Workers and aborts with missing static directory detection error.",
"rootCause": "Wrangler v4 routes new `pages project create` commands to Workers by default unless classic Pages creation is explicitly requested.",
"verifiedFix": "Pass `--force` once on `wrangler pages project create {NAME} --production-branch main --force`, then run subsequent `wrangler pages deploy` commands WITHOUT `--force`.",
"verificationCheck": "Confirm project creation prints the `.pages.dev` domain and `wrangler pages deploy {DIR} --project-name {NAME}` returns HTTP 200.",
"commandPattern": "wrangler pages project create {PROJECT_NAME} --production-branch main --force",
"commandRisk": "REVERSIBLE",
"license": "CC0-1.0",
"sourceBasis": "SELF_AUTHORED_FIX"
}
}
fix.wrangler3-pages-legacy
v1
Ca Lỗi Thực Chiến
Mức độ: low
ĐÃ THAY THẾ
Áp dụng cho: Wrangler 3.x (Legacy)
Hạn rà soát: 2026-05-27
Thay bằng: fix.wrangler4-pages-create-force
Nội dung có AI hỗ trợ · mô hình: tdguard-maintainers-i18n
·sha256:7c05dd153e…7bdd39
Tóm tắt dễ hiểu
Ghi chú cũ về tạo dự án Pages trên Wrangler v3 (đã được thay thế bởi hướng dẫn Wrangler v4 để tránh gửi trùng lặp).
- Môi trường
- Legacy Wrangler 3.x CLI (superseded by Wrangler 4.x)
- Triệu chứng
- Older automation scripts assume `wrangler pages project create` never delegates to Workers.
- Nguyên nhân gốc
- Wrangler v4 changed default project creation behavior; keeping v3 instructions causes immediate deployment failure.
- Cách sửa đã kiểm chứng
- Migrate to `fix.wrangler4-pages-create-force` when upgrading to Wrangler 4.x.
- Cách kiểm tra lại
- Check `wrangler --version` and follow the v4 guide if major version is 4 or higher.
Trường Kiểm Tra: command
EXPLAIN_TO_USER
JSON kỹ thuật & Dấu hiệu
{
"id": "fix.wrangler3-pages-legacy",
"version": 1,
"category": "engineering_fix",
"severity": "low",
"lifecycleStatus": "DEPRECATED",
"lifecycle": {
"status": "DEPRECATED",
"appliesTo": "Wrangler 3.x (Legacy)",
"verifiedAt": 1764288000000,
"reviewDueAt": 1779840000000,
"replacedBy": "fix.wrangler4-pages-create-force",
"retireReason": ""
},
"match": {
"field": "command",
"containsAny": [
"wrangler3_pages_create_legacy"
]
},
"actions": [
"EXPLAIN_TO_USER"
],
"indicators": [],
"knowledge": {
"environment": "Legacy Wrangler 3.x CLI (superseded by Wrangler 4.x)",
"symptom": "Older automation scripts assume `wrangler pages project create` never delegates to Workers.",
"rootCause": "Wrangler v4 changed default project creation behavior; keeping v3 instructions causes immediate deployment failure.",
"verifiedFix": "Migrate to `fix.wrangler4-pages-create-force` when upgrading to Wrangler 4.x.",
"verificationCheck": "Check `wrangler --version` and follow the v4 guide if major version is 4 or higher.",
"commandPattern": "",
"commandRisk": "READ_ONLY",
"license": "CC0-1.0",
"sourceBasis": "SELF_AUTHORED_FIX"
}
}
cmd.ps51-join-and-utf8-safe
v1
Câu Lệnh Chuẩn
Mức độ: low
CÒN HẠN
Áp dụng cho: Windows PowerShell 5.1
Hạn rà soát: 2028-11-26
Nội dung có AI hỗ trợ · mô hình: tdguard-maintainers-i18n
·sha256:8493adca68…69ab0a
Tóm tắt dễ hiểu
Mẫu lệnh an toàn cho Windows PowerShell 5.1: dùng toán tử `-join` thay vì `Join-String` và giữ tệp `.ps1` chuẩn ASCII để tránh vỡ UTF-8.
- Môi trường
- Windows PowerShell 5.1 (built-in Windows desktop edition)
- Triệu chứng
- Scripts fail with `Join-String is not recognized` or break string parsing on UTF-8 em-dashes without BOM.
- Nguyên nhân gốc
- `Join-String` exists only in PowerShell 6+/7+, and PowerShell 5.1 reads UTF-8 files without BOM using the local Windows code page.
- Cách sửa đã kiểm chứng
- Use the native `-join ', '` operator for joining arrays and keep `.ps1` automation scripts pure ASCII (or UTF-8 with BOM when Unicode literals are needed).
- Cách kiểm tra lại
- Execute the script under `powershell.exe -NoProfile` and verify clean exit code 0.
Mẫu lệnh tham số hóa
READ_ONLY
$items -join ', '
Trường Kiểm Tra: command
EXPLAIN_TO_USER
JSON kỹ thuật & Dấu hiệu
{
"id": "cmd.ps51-join-and-utf8-safe",
"version": 1,
"category": "command_snippet",
"severity": "low",
"lifecycleStatus": "ACTIVE",
"lifecycle": {
"status": "ACTIVE",
"appliesTo": "Windows PowerShell 5.1",
"verifiedAt": 1795800000000,
"reviewDueAt": 1858872000000,
"replacedBy": "",
"retireReason": ""
},
"match": {
"field": "command",
"containsAny": [
"join-string -separator",
"join-string -outputprefix"
]
},
"actions": [
"EXPLAIN_TO_USER"
],
"indicators": [],
"knowledge": {
"environment": "Windows PowerShell 5.1 (built-in Windows desktop edition)",
"symptom": "Scripts fail with `Join-String is not recognized` or break string parsing on UTF-8 em-dashes without BOM.",
"rootCause": "`Join-String` exists only in PowerShell 6+/7+, and PowerShell 5.1 reads UTF-8 files without BOM using the local Windows code page.",
"verifiedFix": "Use the native `-join ', '` operator for joining arrays and keep `.ps1` automation scripts pure ASCII (or UTF-8 with BOM when Unicode literals are needed).",
"verificationCheck": "Execute the script under `powershell.exe -NoProfile` and verify clean exit code 0.",
"commandPattern": "$items -join ', '",
"commandRisk": "READ_ONLY",
"license": "CC0-1.0",
"sourceBasis": "SELF_AUTHORED_FIX"
}
}
cmd.git-soft-reset-safe
v1
Câu Lệnh Chuẩn
Mức độ: medium
CÒN HẠN
Áp dụng cho: Evergreen / Git >= 2.30
Hạn rà soát: 2028-11-26
Nội dung có AI hỗ trợ · mô hình: tdguard-maintainers-i18n
·sha256:c75363340f…a1217a
Tóm tắt dễ hiểu
Câu lệnh Git có thể hoàn tác giúp lùi lại commit cục bộ chưa push mà vẫn giữ nguyên toàn bộ thay đổi trong vùng staging.
- Môi trường
- Git >= 2.30 on Windows, macOS, and Linux
- Triệu chứng
- Uncommitted edits or newly created files are permanently wiped when rolling back a local commit carelessly.
- Nguyên nhân gốc
- Hard resets discard tracked modifications immediately without placing them in the staging area for inspection.
- Cách sửa đã kiểm chứng
- Prefer `git reset --soft HEAD~1` on unpushed local commits so every change remains staged and inspectable before recommitting.
- Cách kiểm tra lại
- Run `git status --short` after reset to confirm all modified files remain intact in the index.
Mẫu lệnh tham số hóa
REVERSIBLE
git reset --soft HEAD~1
Trường Kiểm Tra: command
ALERT_USEREXPLAIN_TO_USER
JSON kỹ thuật & Dấu hiệu
{
"id": "cmd.git-soft-reset-safe",
"version": 1,
"category": "command_snippet",
"severity": "medium",
"lifecycleStatus": "ACTIVE",
"lifecycle": {
"status": "ACTIVE",
"appliesTo": "Evergreen / Git >= 2.30",
"verifiedAt": 1795800000000,
"reviewDueAt": 1858872000000,
"replacedBy": "",
"retireReason": ""
},
"match": {
"field": "command",
"containsAny": [
"git reset --hard head~1",
"git reset --hard origin/"
]
},
"actions": [
"ALERT_USER",
"EXPLAIN_TO_USER"
],
"indicators": [],
"knowledge": {
"environment": "Git >= 2.30 on Windows, macOS, and Linux",
"symptom": "Uncommitted edits or newly created files are permanently wiped when rolling back a local commit carelessly.",
"rootCause": "Hard resets discard tracked modifications immediately without placing them in the staging area for inspection.",
"verifiedFix": "Prefer `git reset --soft HEAD~1` on unpushed local commits so every change remains staged and inspectable before recommitting.",
"verificationCheck": "Run `git status --short` after reset to confirm all modified files remain intact in the index.",
"commandPattern": "git reset --soft HEAD~1",
"commandRisk": "REVERSIBLE",
"license": "CC0-1.0",
"sourceBasis": "OFFICIAL_DOCS_SUMMARY"
}
}
cmd.opsec-prepush-diff-audit
v1
Câu Lệnh Chuẩn
Mức độ: medium
CÒN HẠN
Áp dụng cho: Evergreen / Git & Public OSS
Hạn rà soát: 2028-11-26
Nội dung có AI hỗ trợ · mô hình: tdguard-maintainers-i18n
·sha256:a1e207cfe7…deb94e
Tóm tắt dễ hiểu
Câu lệnh chỉ-đọc rà soát danh sách tệp đã stage và thư mục cache ẩn trước khi commit lên kho mã nguồn công khai.
- Môi trường
- Git repositories preparing public commits or releases
- Triệu chứng
- Blind `git add -A` accidentally stages `.wrangler/cache/`, `.env`, or temporary key files into public commit history.
- Nguyên nhân gốc
- CLI tools generate hidden cache directories containing cloud account identifiers inside the project root.
- Cách sửa đã kiểm chứng
- Run a read-only `git status --short` and `git diff --cached --name-only` inspection before committing, paired with an automated OPSEC gate.
- Cách kiểm tra lại
- Verify zero `.env`, `.pem`, `.key`, or `.wrangler` entries appear in staged output.
Mẫu lệnh tham số hóa
READ_ONLY
git status --short && git diff --cached --name-only
Trường Kiểm Tra: command
EXPLAIN_TO_USER
JSON kỹ thuật & Dấu hiệu
{
"id": "cmd.opsec-prepush-diff-audit",
"version": 1,
"category": "command_snippet",
"severity": "medium",
"lifecycleStatus": "ACTIVE",
"lifecycle": {
"status": "ACTIVE",
"appliesTo": "Evergreen / Git & Public OSS",
"verifiedAt": 1795800000000,
"reviewDueAt": 1858872000000,
"replacedBy": "",
"retireReason": ""
},
"match": {
"field": "command",
"containsAny": [
"git add . && git commit",
"git add -a && git push"
]
},
"actions": [
"EXPLAIN_TO_USER"
],
"indicators": [],
"knowledge": {
"environment": "Git repositories preparing public commits or releases",
"symptom": "Blind `git add -A` accidentally stages `.wrangler/cache/`, `.env`, or temporary key files into public commit history.",
"rootCause": "CLI tools generate hidden cache directories containing cloud account identifiers inside the project root.",
"verifiedFix": "Run a read-only `git status --short` and `git diff --cached --name-only` inspection before committing, paired with an automated OPSEC gate.",
"verificationCheck": "Verify zero `.env`, `.pem`, `.key`, or `.wrangler` entries appear in staged output.",
"commandPattern": "git status --short && git diff --cached --name-only",
"commandRisk": "READ_ONLY",
"license": "CC0-1.0",
"sourceBasis": "SELF_AUTHORED_FIX"
}
}
pitfall.ps51-rdap-byte-array
v1
Bẫy Tích Hợp
Mức độ: medium
CÒN HẠN
Áp dụng cho: Windows PowerShell 5.1 / REST APIs
Hạn rà soát: 2028-11-26
Nội dung có AI hỗ trợ · mô hình: tdguard-maintainers-i18n
·sha256:9fccd1866e…4772f6
Tóm tắt dễ hiểu
Giải thích vì sao `Invoke-WebRequest -UseBasicParsing` trên PowerShell 5.1 trả về mảng `byte[]` với các kiểu MIME `+json` như RDAP.
- Môi trường
- Windows PowerShell 5.1 calling REST endpoints with vendor `+json` media types
- Triệu chứng
- Piping `$res.Content | ConvertFrom-Json` yields empty fields or fails silently on `application/rdap+json` responses.
- Nguyên nhân gốc
- PowerShell 5.1 treats non-standard JSON content types as binary `byte[]` instead of UTF-8 strings.
- Cách sửa đã kiểm chứng
- Check if `$res.Content` is `byte[]` and decode explicitly via `[System.Text.Encoding]::UTF8.GetString($res.Content)` before calling `ConvertFrom-Json`.
- Cách kiểm tra lại
- Verify decoded string starts with `{` and parses cleanly into expected JSON properties.
Mẫu lệnh tham số hóa
READ_ONLY
[System.Text.Encoding]::UTF8.GetString($res.Content) | ConvertFrom-Json
Trường Kiểm Tra: command
EXPLAIN_TO_USER
JSON kỹ thuật & Dấu hiệu
{
"id": "pitfall.ps51-rdap-byte-array",
"version": 1,
"category": "integration_pitfall",
"severity": "medium",
"lifecycleStatus": "ACTIVE",
"lifecycle": {
"status": "ACTIVE",
"appliesTo": "Windows PowerShell 5.1 / REST APIs",
"verifiedAt": 1795800000000,
"reviewDueAt": 1858872000000,
"replacedBy": "",
"retireReason": ""
},
"match": {
"field": "command",
"containsAny": [
"application/rdap+json",
"application/problem+json"
]
},
"actions": [
"EXPLAIN_TO_USER"
],
"indicators": [],
"knowledge": {
"environment": "Windows PowerShell 5.1 calling REST endpoints with vendor `+json` media types",
"symptom": "Piping `$res.Content | ConvertFrom-Json` yields empty fields or fails silently on `application/rdap+json` responses.",
"rootCause": "PowerShell 5.1 treats non-standard JSON content types as binary `byte[]` instead of UTF-8 strings.",
"verifiedFix": "Check if `$res.Content` is `byte[]` and decode explicitly via `[System.Text.Encoding]::UTF8.GetString($res.Content)` before calling `ConvertFrom-Json`.",
"verificationCheck": "Verify decoded string starts with `{` and parses cleanly into expected JSON properties.",
"commandPattern": "[System.Text.Encoding]::UTF8.GetString($res.Content) | ConvertFrom-Json",
"commandRisk": "READ_ONLY",
"license": "CC0-1.0",
"sourceBasis": "SELF_AUTHORED_FIX"
}
}
pitfall.unicode-nfc-nfd-vietnamese
v1
Bẫy Tích Hợp
Mức độ: medium
CÒN HẠN
Áp dụng cho: Evergreen / Multilingual UTF-8
Hạn rà soát: 2028-11-26
Nội dung có AI hỗ trợ · mô hình: tdguard-maintainers-i18n
·sha256:83b15e4806…5fba07
Tóm tắt dễ hiểu
Tránh lỗi lệch mã băm SHA-256 và so sánh sai trên chuỗi tiếng Việt có dấu do trộn lẫn hai dạng chuẩn hóa Unicode NFC và NFD.
- Môi trường
- Cross-platform apps (macOS / Windows / Web / Node / Rust) hashing or comparing accented strings
- Triệu chứng
- Two visually identical Vietnamese strings produce different SHA-256 hashes or fail strict equality checks.
- Nguyên nhân gốc
- macOS and some IMEs emit decomposed NFD combining marks while Windows/web emit precomposed NFC code points.
- Cách sửa đã kiểm chứng
- Normalize all canonical text fields with `.normalize('NFC')` before computing signatures, SHA-256 digests, or database lookups.
- Cách kiểm tra lại
- Compare `sha256(nfcText)` against `sha256(nfdText.normalize('NFC'))` and verify identical hex digests.
Mẫu lệnh tham số hóa
READ_ONLY
text.normalize('NFC')
Trường Kiểm Tra: prompt
EXPLAIN_TO_USER
JSON kỹ thuật & Dấu hiệu
{
"id": "pitfall.unicode-nfc-nfd-vietnamese",
"version": 1,
"category": "integration_pitfall",
"severity": "medium",
"lifecycleStatus": "ACTIVE",
"lifecycle": {
"status": "ACTIVE",
"appliesTo": "Evergreen / Multilingual UTF-8",
"verifiedAt": 1795800000000,
"reviewDueAt": 1858872000000,
"replacedBy": "",
"retireReason": ""
},
"match": {
"field": "prompt",
"containsAny": [
"nfc_nfd_mismatch",
"vietnamese_hash_mismatch"
]
},
"actions": [
"EXPLAIN_TO_USER"
],
"indicators": [],
"knowledge": {
"environment": "Cross-platform apps (macOS / Windows / Web / Node / Rust) hashing or comparing accented strings",
"symptom": "Two visually identical Vietnamese strings produce different SHA-256 hashes or fail strict equality checks.",
"rootCause": "macOS and some IMEs emit decomposed NFD combining marks while Windows/web emit precomposed NFC code points.",
"verifiedFix": "Normalize all canonical text fields with `.normalize('NFC')` before computing signatures, SHA-256 digests, or database lookups.",
"verificationCheck": "Compare `sha256(nfcText)` against `sha256(nfdText.normalize('NFC'))` and verify identical hex digests.",
"commandPattern": "text.normalize('NFC')",
"commandRisk": "READ_ONLY",
"license": "CC0-1.0",
"sourceBasis": "OFFICIAL_DOCS_SUMMARY"
}
}
pitfall.ed25519-rfc8032-torsion
v1
Bẫy Tích Hợp
Mức độ: high
CÒN HẠN
Áp dụng cho: Evergreen / Node.js OpenSSL & Crypto
Hạn rà soát: 2028-11-26
Nội dung có AI hỗ trợ · mô hình: tdguard-maintainers-i18n
·sha256:af629b1482…702fbf
Tóm tắt dễ hiểu
Bảo vệ bộ xác minh chữ ký Ed25519 khỏi khóa điểm xoắn bậc nhỏ, giá trị S >= L có thể biến dạng và nhầm lẫn khóa X25519 SPKI.
- Môi trường
- Node.js crypto / OpenSSL verifying untrusted Ed25519 public keys and signatures
- Triệu chứng
- Default OpenSSL verification can accept low-order torsion points or mislabeled X25519 SPKI keys if unchecked.
- Nguyên nhân gốc
- Different crypto libraries disagree on strict RFC 8032 cofactored vs cofactorless verification and canonical S scalar bounds.
- Cách sửa đã kiểm chứng
- Verify `asymmetricKeyType === 'ed25519'`, reject the 8 low-order torsion points and y >= p, and enforce canonical scalar S strictly between 0 and L before calling `crypto.verify`.
- Cách kiểm tra lại
- Run negative crypto tests with identity point `0100..00`, `S >= L`, and an X25519 key; all must return false.
Trường Kiểm Tra: prompt
ALERT_USEREXPLAIN_TO_USER
JSON kỹ thuật & Dấu hiệu
{
"id": "pitfall.ed25519-rfc8032-torsion",
"version": 1,
"category": "integration_pitfall",
"severity": "high",
"lifecycleStatus": "ACTIVE",
"lifecycle": {
"status": "ACTIVE",
"appliesTo": "Evergreen / Node.js OpenSSL & Crypto",
"verifiedAt": 1795800000000,
"reviewDueAt": 1858872000000,
"replacedBy": "",
"retireReason": ""
},
"match": {
"field": "prompt",
"containsAny": [
"ed25519_small_order_key",
"x25519_spki_confusion"
]
},
"actions": [
"ALERT_USER",
"EXPLAIN_TO_USER"
],
"indicators": [],
"knowledge": {
"environment": "Node.js crypto / OpenSSL verifying untrusted Ed25519 public keys and signatures",
"symptom": "Default OpenSSL verification can accept low-order torsion points or mislabeled X25519 SPKI keys if unchecked.",
"rootCause": "Different crypto libraries disagree on strict RFC 8032 cofactored vs cofactorless verification and canonical S scalar bounds.",
"verifiedFix": "Verify `asymmetricKeyType === 'ed25519'`, reject the 8 low-order torsion points and y >= p, and enforce canonical scalar S strictly between 0 and L before calling `crypto.verify`.",
"verificationCheck": "Run negative crypto tests with identity point `0100..00`, `S >= L`, and an X25519 key; all must return false.",
"commandPattern": "",
"commandRisk": "READ_ONLY",
"license": "CC0-1.0",
"sourceBasis": "SELF_AUTHORED_FIX"
}
}
workflow.opsec-forbidden-vs-skip
v1
Quy Trình An Toàn
Mức độ: high
CÒN HẠN
Áp dụng cho: Evergreen / Public Repo OPSEC
Hạn rà soát: 2028-11-26
Nội dung có AI hỗ trợ · mô hình: tdguard-maintainers-i18n
·sha256:41e0f5fcb4…114b19
Tóm tắt dễ hiểu
Quy trình OPSEC cho nhà phát triển: đưa thư mục cache như `.wrangler` vào danh sách CẤM (`FORBIDDEN_DIRS`) thay vì BỎ QUA (`SKIP_DIRS`) trong cổng kiểm tra.
- Môi trường
- Automated OPSEC gates scanning public open-source staging repositories
- Triệu chứng
- Hidden CLI cache folders containing cloud account IDs pass the scanner silently because they were added to SKIP_DIRS.
- Nguyên nhân gốc
- SKIP_DIRS tells the scanner not to inspect a folder, whereas FORBIDDEN_DIRS fails closed if the folder exists in staging.
- Cách sửa đã kiểm chứng
- Exclude `.wrangler` in both `.gitignore` and sync allowlists, AND list `.wrangler` inside `FORBIDDEN_DIRS` in the OPSEC scanner so any accidental copy aborts the release.
- Cách kiểm tra lại
- Place a dummy `.wrangler/test.json` in a temp test dir and confirm the OPSEC gate exits with non-zero status.
Trường Kiểm Tra: filename
ALERT_USEREXPLAIN_TO_USER
JSON kỹ thuật & Dấu hiệu
{
"id": "workflow.opsec-forbidden-vs-skip",
"version": 1,
"category": "safe_workflow",
"severity": "high",
"lifecycleStatus": "ACTIVE",
"lifecycle": {
"status": "ACTIVE",
"appliesTo": "Evergreen / Public Repo OPSEC",
"verifiedAt": 1795800000000,
"reviewDueAt": 1858872000000,
"replacedBy": "",
"retireReason": ""
},
"match": {
"field": "filename",
"containsAny": [
".wrangler/cache",
"wrangler-account.json"
]
},
"actions": [
"ALERT_USER",
"EXPLAIN_TO_USER"
],
"indicators": [
{
"type": "filename",
"value": "wrangler-account.json"
}
],
"knowledge": {
"environment": "Automated OPSEC gates scanning public open-source staging repositories",
"symptom": "Hidden CLI cache folders containing cloud account IDs pass the scanner silently because they were added to SKIP_DIRS.",
"rootCause": "SKIP_DIRS tells the scanner not to inspect a folder, whereas FORBIDDEN_DIRS fails closed if the folder exists in staging.",
"verifiedFix": "Exclude `.wrangler` in both `.gitignore` and sync allowlists, AND list `.wrangler` inside `FORBIDDEN_DIRS` in the OPSEC scanner so any accidental copy aborts the release.",
"verificationCheck": "Place a dummy `.wrangler/test.json` in a temp test dir and confirm the OPSEC gate exits with non-zero status.",
"commandPattern": "",
"commandRisk": "READ_ONLY",
"license": "Apache-2.0",
"sourceBasis": "MAINTAINER_VERIFIED"
}
}
workflow.ai-disclosure-tech-checklist
v1
Quy Trình An Toàn
Mức độ: medium
CÒN HẠN
Áp dụng cho: Evergreen / Technical Readiness
Hạn rà soát: 2027-11-27
Nội dung có AI hỗ trợ · mô hình: tdguard-maintainers-i18n
·sha256:ead9573274…5f4949
Tóm tắt dễ hiểu
Danh mục kiểm tra kỹ thuật về gắn nhãn nguồn gốc AI, nhật ký PII hủy mật mã và cổng khuyến nghị tĩnh chỉ-đọc (chỉ tham khảo kỹ thuật, không phải tư vấn pháp lý).
- Môi trường
- Open-source AI tools shipping static advisory portals and telemetry-free local sidecars
- Triệu chứng
- Engineering teams miss basic technical hygiene such as AI-origin provenance tags, PII erasure hooks, or strict read-only boundaries.
- Nguyên nhân gốc
- Mixing user-generated social features, unredacted logs, and unlabeled AI outputs creates avoidable operational and compliance risk.
- Cách sửa đã kiểm chứng
- Tag every published item with `contentOrigin` + `aiModel`, store private intake logs as crypto-shreddable salted HMAC commitments with 7-day TTL, serve static portals with `script-src none`, and consult qualified counsel for jurisdiction-specific legal questions.
- Cách kiểm tra lại
- Confirm `_headers` sets `script-src 'none'`, `PUBLIC_SHOW_UNVERIFIED=false`, and every AI-assisted item discloses `aiModel`.
Trường Kiểm Tra: prompt
EXPLAIN_TO_USER
JSON kỹ thuật & Dấu hiệu
{
"id": "workflow.ai-disclosure-tech-checklist",
"version": 1,
"category": "safe_workflow",
"severity": "medium",
"lifecycleStatus": "ACTIVE",
"lifecycle": {
"status": "ACTIVE",
"appliesTo": "Evergreen / Technical Readiness",
"verifiedAt": 1795800000000,
"reviewDueAt": 1827336000000,
"replacedBy": "",
"retireReason": ""
},
"match": {
"field": "prompt",
"containsAny": [
"tdguard_compliance_checklist",
"ai_origin_tech_audit"
]
},
"actions": [
"EXPLAIN_TO_USER"
],
"indicators": [],
"knowledge": {
"environment": "Open-source AI tools shipping static advisory portals and telemetry-free local sidecars",
"symptom": "Engineering teams miss basic technical hygiene such as AI-origin provenance tags, PII erasure hooks, or strict read-only boundaries.",
"rootCause": "Mixing user-generated social features, unredacted logs, and unlabeled AI outputs creates avoidable operational and compliance risk.",
"verifiedFix": "Tag every published item with `contentOrigin` + `aiModel`, store private intake logs as crypto-shreddable salted HMAC commitments with 7-day TTL, serve static portals with `script-src none`, and consult qualified counsel for jurisdiction-specific legal questions.",
"verificationCheck": "Confirm `_headers` sets `script-src 'none'`, `PUBLIC_SHOW_UNVERIFIED=false`, and every AI-assisted item discloses `aiModel`.",
"commandPattern": "",
"commandRisk": "READ_ONLY",
"license": "Apache-2.0",
"sourceBasis": "MAINTAINER_VERIFIED"
}
}