Logo Auditing Security Logging Completeness

Auditing Security Logging Completeness

Tổ chức
UnboundCompute
auditing-security-logging-completeness

Audit whether an application actually records the security events an investigation would need, and whether the logs themselves leak or lie: a security decision (authentication, an authorization denial or sensitive grant, a credential or privilege change, access to sensitive data) that fires with no durable record, an audit entry missing the actor, target, or outcome, secrets or personal data flowing into a widely-readable log, and untrusted input written to a log without neutralizing line breaks so entries can be forged. Covers coverage gaps at the decision points, record sufficiency and tamper-resistance, log-as-disclosure, and log injection. Use when assessing whether the code emits the security signal downstream detection and forensics depend on. The security action or the secret is the source, the audit or log sink is the sink, and the missing or unsafe record is the finding.

Tổng quan

Nhà phát hànhUnboundCompute
Kho mãsecurity-agent-skills
Tên kỹ năngauditing-security-logging-completeness
Sao
27
Bản fork
8
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Đầy đủ trong hướng dẫn

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được UnboundCompute công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Auditing Security Logging Completeness trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-security-logging-completeness
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnboundCompute/security-agent-skills.git /tmp/security-agent-skills
mkdir -p .claude/skills
cp -r /tmp/security-agent-skills/skills/auditing-security-logging-completeness .claude/skills/auditing-security-logging-completeness
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Auditing Security Logging Completeness trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Auditing Security Logging Completeness ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Auditing Security Logging Completeness không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Auditing security-logging completeness: whether the record exists when you need it

Detection and forensics can only work with signals the application actually emits. A gate that denies access but writes nothing is invisible after the fact; a privilege change with no audit entry cannot be reconstructed; a log that quietly captures a token or an email address becomes a disclosure store; a log that accepts raw newlines can be forged to hide a trail. This audit is the mirror of the usual hunt: the source is a security-relevant action that must reach an audit sink, or a secret that must never reach a log sink, and the finding is a record that is missing, insufficient, leaking, or forgeable. You do it by enumerating the decisions that matter and following each to whether, and how, it is recorded.

When to use

  • You are assessing whether an application produces the security events an investigation would need.
  • Authorization denials, authentication, privilege changes, or sensitive reads may go unrecorded.
  • Logs may capture secrets or personal data, or accept unneutralized untrusted input.

Scope check

Audit logging and log contents only in systems you own or are authorized to assess, and treat any secrets or personal data you find in logs as sensitive: report their presence, do not copy them out. If you can't name the authorization, stop.

The loop

  1. Enumerate the security decisions that should be recorded. Inventory where a security-relevant event happens: authentication attempts and their outcome, authorization denials and sensitive grants, credential and privilege changes, account lifecycle events, and access to sensitive data. This is the set of sources that each need to reach a durable audit sink.

  2. Check each decision actually reaches an audit sink. For every one, trace whether it emits a durable, security-relevant record, not just a response to the user. A denial that returns an error but logs nothing, or logs only at a debug level that is off in production, is invisible to an investigation. A decision that fires with no record is the core gap.

  3. Check the record is sufficient and tamper-evident. A log line that omits the actor, the target, the source, or the outcome cannot answer the question it exists for. Determine whether audit events are distinguishable from operational noise, retained long enough, and protected from being altered or deleted by the same identities whose actions they record.

  4. Check for secrets and personal data flowing into logs. Trace whether credentials, tokens, keys, session identifiers, or personal data reach a log sink, directly or by logging a whole request, header set, or object. A log is a lower-trust, widely-readable, long-retained store; a secret written there is a disclosure and often outlives the secret's rotation.

  5. Check for log injection. Trace whether untrusted input is written into a log without neutralizing line breaks and control characters. An attacker who can inject a newline can forge additional entries, corrupt log parsing, or bury their own activity under noise, undermining every downstream detection and investigation that reads the log.

  6. Confirm and record. Confirm a completeness gap by exercising a security decision in scope and showing no adequate record results; confirm a leak or injection by showing a secret reaching a log or an injected newline forging an entry. Kill the lead if every enumerated decision emits a durable, sufficient, tamper-resistant audit record, secrets and personal data are kept out of logs, and untrusted input is neutralized before it is written. Record with the decision or value, the sink, and what was missing or exposed.

Where security logging leaks

  • A silent denial is a blind spot. If the gate rejects but writes nothing, no detection rule and no investigation can ever see it. Coverage at the decision point is the whole point of the audit.
  • A record without the actor or outcome cannot be used. Retention is wasted on entries that do not say who did what to whom with what result; sufficiency matters as much as existence.
  • Audit logs editable by the recorded identity are not evidence. If the actor can alter or delete the record of their action, the log protects no one.
  • A log is a disclosure store. Secrets and personal data written to logs spread widely, persist past rotation, and are read by many; the safe amount in a log is none.
  • Unneutralized input lets the attacker write the log. Injected line breaks forge entries and blind the reader; neutralize control characters before writing untrusted data.

Worked example (a confirm and a kill)

Confirm. Authorization denials on a sensitive administrative action return an error to the caller but emit no audit event, and successful privilege grants are logged only at a debug level disabled in production. An attacker probing the action leaves no trace, and a granted escalation cannot be reconstructed afterward. Confirmed missing security-audit coverage on privileged actions, high, remediation = emit a durable audit event with actor, target, source, and outcome for every denial and grant on sensitive actions, at a level retained in production and protected from the acting identity.

Kill. Every authentication, authorization denial and sensitive grant, credential and privilege change, and sensitive read emits a durable audit record carrying actor, target, source, time, and outcome, written to a store the recorded identities cannot alter; secrets and personal data are redacted before logging; and untrusted fields are neutralized against line-break injection. Exercised decisions all produce sufficient records and an injected newline is escaped. Killed, kill_reason = "all enumerated decisions emit sufficient, tamper-resistant audit records; no secrets or personal data in logs; untrusted input neutralized before writing."

Rationalizations to reject

  • "We log plenty already." → Volume is not coverage. The question is whether each specific security decision produces a sufficient record, not how many lines the app writes.
  • "The error response is the record." → A response to the user is not a durable audit event and is not retained or protected. The record has to survive on your side.
  • "Debug logging covers it." → Debug levels are off in production exactly when it matters. If it is security-relevant, it belongs at a retained level.
  • "It is just a token in the log, internal only." → Logs are widely read and long retained; an internal secret in a log is a disclosure with a long tail. Redact it.
  • "Who would inject a log line?" → Anyone who can put a newline in a field you log. Unneutralized input lets the attacker forge the very record you would investigate with.

Executing this in practice

You need the list of security-decision points, the trace from each to whether and how it is recorded, the sufficiency and protection of the audit store, the set of secret and personal-data values and whether any reach a log sink, and whether untrusted input is neutralized before it is written. For each, ask whether the record exists, whether it is enough, and whether the log can be leaked or forged. Reading the code shows the intended logging; exercising the decisions and following sensitive values shows what is really recorded.

Related

  • finding-fail-open-flaws - that skill hunts the gate that fails to deny; this one hunts the missing record of the gate firing at all.
  • reviewing-detection-rules-for-evasion - detection can only match events the app emits; a coverage gap here is an upstream blind spot no rule can close.
  • writing-vuln-reports - a completeness or leak finding needs the decision, the sink, and what was missing stated precisely; use the shared schema.
  • FINDING-SCHEMA.md - source = the security action or the secret, sink = the audit or log sink, evidence = the missing, insufficient, leaking, or forgeable record.

Câu hỏi thường gặp

Kỹ năng AI Auditing Security Logging Completeness làm được gì?

Audit whether an application actually records the security events an investigation would need, and whether the logs themselves leak or lie: a security decision (authentication, an authorization denial or sensitive grant, a credential or privilege change, access to sensitive data) that fires with no durable record, an audit entry missing the actor, target, or outcome, secrets or personal data flowing into a widely-readable log, and untrusted input written to a log without neutralizing line breaks so entries can be forged. Covers coverage gaps at the decision points, record sufficiency and ta...

Vì sao nên dùng Auditing Security Logging Completeness trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Auditing Security Logging Completeness là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Auditing Security Logging Completeness trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-security-logging-completeness. TypingMind đọc tệp SKILL.md và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Auditing Security Logging Completeness?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Auditing Security Logging Completeness với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Auditing Security Logging Completeness với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Auditing Security Logging Completeness có miễn phí không?

Có. Kỹ năng này được UnboundCompute phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇