Logo Auditing Error Handling And Information Exposure

Auditing Error Handling And Information Exposure

Tổ chức
UnboundCompute
auditing-error-handling-and-information-exposure

Kiểm tra xử lý lỗi và các bề mặt chẩn đoán để tìm thông tin nhạy cảm mà client thực sự nhận được. Đường xử lý ngoại lệ, tính năng gỡ lỗi hoặc endpoint chẩn đoán có thể trả về stack trace, lỗi cơ sở dữ liệu, đường dẫn nội bộ, banner framework hoặc phiên bản, cấu hình, bí mật hoặc thông báo khác nhau đủ để dò tìm người dùng. Dùng khi rà soát cách dịch vụ phản hồi các yêu cầu sai định dạng, không được cấp quyền hoặc thất bại trong cấu hình đã triển khai, cũng như việc có để lộ chế độ gỡ lỗi, source map hoặc metadata kiểm soát phiên bản hay không. Chỉ tập trung vào nội dung thực sự được trả về trong môi trường production, không bao gồm thông tin chi tiết chỉ dành cho nhà phát triển. Đường xử lý lỗi hoặc chẩn đoán là nguồn; phản hồi, header hoặc log người dùng nhìn thấy là đích; lỗi nằm ở việc tiết lộ thông tin chi tiết hỗ trợ các cuộc tấn công tiếp theo.

Tổng quan

Nhà phát hànhUnboundCompute
Kho mãsecurity-agent-skills
Tên kỹ năngauditing-error-handling-and-information-exposure
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 dùng hướng dẫn viết bằng Markdown thay vì 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ộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    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 các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Auditing Error Handling And Information Exposure 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 của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-error-handling-and-information-exposure
  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-error-handling-and-information-exposure .claude/skills/auditing-error-handling-and-information-exposure
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 Error Handling And Information Exposure 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ự nạp Auditing Error Handling And Information Exposure 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 bạn có thể dùng Auditing Error Handling And Information Exposure với cả những mô hình khác ngoài mô hình ban đầu. 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 khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổ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 error handling and information exposure: when a failure tells the attacker how it works

Every application fails, and how it fails is a message to whoever is probing it. A stack trace names the framework, the file layout, and the line that broke. A database error quotes the query and confirms an injection point. A verbose not-found versus a verbose forbidden tells an attacker which accounts exist. A debug endpoint left on in production hands over configuration and sometimes secrets. None of this is a memory-corruption bug or an injection; it is the system narrating its internals to an unauthenticated client, turning blind probing into informed attack. The audit is not about suppressing all errors; it is about deciding, for the deployed configuration, whether what a real client receives on failure reveals security-relevant structure. You find it by driving the error paths a client can reach and reading exactly what comes back.

When to use

  • A service returns errors on malformed, unauthorized, or failing requests and you can observe the responses.
  • Debug modes, verbose error pages, or diagnostic and health endpoints may be reachable in production.
  • Build or deployment artifacts (source maps, version-control metadata, backups) may be served publicly.

Scope check

Test error and diagnostic surfaces only against systems you own or are authorized to assess, using benign malformed input rather than live exploitation to trigger failures, and treat any disclosed secret as a real credential to be reported and rotated, not reused. Stay within the authorized scope. If you can't name the authorization, stop.

The loop

  1. Establish what a real client receives in the deployed configuration first. Determine whether the production error handler is active and debug mode is off, so the verbose page you see locally is not what a client actually gets. This is the false-positive killer: a detailed trace visible only under a developer flag that is disabled in production is not a finding, while the generic page that production returns is the real evidence. Confirm the deployed behavior before judging the detail.

  2. Enumerate the reachable failure paths. Drive the errors a client can cause: malformed bodies, wrong types, oversized input, unauthorized and forbidden access, missing resources, and backend failures. Include diagnostic and health endpoints, and default framework error routes. Each response and its headers are a candidate sink.

  3. Read what the response discloses. For each failure, judge whether the body, status, or headers reveal security-relevant detail: a stack trace, a database or template error, an internal file path or hostname, a framework and version banner, configuration values, or a secret. Cosmetic verbosity that names nothing useful is not the finding; structure an attacker can act on is.

  4. Check for enumeration through differentials. Compare responses for existing versus non-existing accounts, valid versus invalid credentials, and authorized versus unauthorized resources, in wording, status, and timing. A difference that reliably distinguishes the two enumerates users or resources even when no single response looks verbose.

  5. Check for exposed artifacts and debug surfaces. Look for served source maps, version-control directories, backup and configuration files, verbose health or debug endpoints, and default sample pages, which disclose source, structure, or secrets independent of any exception path.

  6. Confirm and record. Confirm by triggering the failure as an unauthenticated or ordinary client in the deployed configuration and capturing the disclosed detail, or by demonstrating the reliable differential. Kill the lead if production returns a generic handler, if the verbose output is gated behind a disabled developer flag, if the disclosed detail names nothing an attacker can use, or if responses and timing do not distinguish existence. Record the failure path, the sink, the disclosed detail, and its use to an attacker, or set a kill_reason.

Where information exposure leaks

  • The gap is local versus production. Verbose errors in development are expected; the finding is whether the same verbosity survives into the deployed configuration a client can reach.
  • Errors confirm other bugs. A quoted database or template error turns a blind injection probe into a confirmed one, so verbose backend errors are force multipliers, not just leaks.
  • Differentials enumerate quietly. Existence disclosure rarely looks like an error; it hides in a wording, status, or timing difference between the present and absent case.
  • Artifacts leak without an exception. Served source maps, version-control metadata, and backups disclose source and structure through ordinary requests, no failure required.
  • Headers talk too. Framework and version banners and debug headers name the stack and its version, narrowing which known weaknesses an attacker tries.

Worked example (a confirm and a kill)

Confirm. A malformed request to an ordinary endpoint returns the framework's default error page with a full stack trace, the source file paths, and the database query that failed, to an unauthenticated client in production. Confirmed sensitive information disclosure through verbose errors, medium, remediation = enable the production error handler with generic client-facing messages, disable debug mode in the deployed configuration, log detail server-side only, and remove framework and version banners from responses.

Kill. The same request returns a generic error with a correlation identifier and no internal detail, debug mode is off in the deployed configuration, the login and lookup responses are identical for present and absent accounts in wording, status, and timing, and no source maps or version-control metadata are served. Nothing in the failure names the stack, the query, or an account's existence. Killed, kill_reason = "production returns generic errors with detail only in server-side logs, no debug or banner disclosure, and existence differentials are absent; failures reveal nothing an attacker can act on."

Rationalizations to reject

  • "That trace only shows in development." -> Then confirm it is disabled in the deployed configuration; the finding is what a real client receives in production, which is where you must check.
  • "It is just an error message." -> A quoted query or a named internal path confirms an injection point or maps the system; the message is intelligence, not noise.
  • "Different messages are more helpful to users." -> A login that distinguishes unknown user from wrong password enumerates accounts; be equally uninformative for both cases.
  • "Source maps help us debug production." -> Served publicly they hand your source to anyone; restrict them or strip them from the public build.
  • "The health endpoint is internal." -> If it is reachable without authentication it is a client surface; confirm the access control, not the intent.

Executing this in practice

You need the deployed error-handling configuration, the responses and headers for the full set of reachable failure paths, the present-versus-absent differentials on authentication and lookup surfaces, and whether any build or version-control artifacts are served. For each, decide whether the detail is security-relevant and whether it reaches an unauthorized client in production. Driving the failures as an ordinary client and reading the exact responses settles most leads; comparing wording, status, and timing settles the enumeration ones.

Related

  • auditing-security-logging-completeness - the complement, where detail belongs in server-side logs rather than in client responses; the two together place each piece of information where it should be.
  • hunting-blind-and-second-order-sql-injection - verbose database errors turn that skill's blind probes into confirmed ones, so error disclosure directly aids it.
  • auditing-session-lifecycle-and-fixation - authentication response differentials that enumerate accounts are adjacent to the session and login concerns audited there.
  • reviewing-rate-limiting-and-abuse-controls - enumeration through differentials is amplified without rate limits, so the two controls are assessed together on login and lookup surfaces.
  • FINDING-SCHEMA.md - source = the error or diagnostic path, sink = the response, header, or user-visible log, evidence = the disclosed detail or the reliable differential captured as an unauthorized client in the deployed configuration.

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

Kỹ năng AI Auditing Error Handling And Information Exposure làm được gì?

Kiểm tra xử lý lỗi và các bề mặt chẩn đoán để tìm thông tin nhạy cảm mà client thực sự nhận được. Đường xử lý ngoại lệ, tính năng gỡ lỗi hoặc endpoint chẩn đoán có thể trả về stack trace, lỗi cơ sở dữ liệu, đường dẫn nội bộ, banner framework hoặc phiên bản, cấu hình, bí mật hoặc thông báo khác nhau đủ để dò tìm người dùng. Dùng khi rà soát cách dịch vụ phản hồi các yêu cầu sai định dạng, không được cấp quyền hoặc thất bại trong cấu hình đã triển khai, cũng như việc có để lộ chế độ gỡ lỗi, source map hoặc metadata kiểm soát phiên bản hay không. Chỉ tập trung vào nội dung thực sự được trả về...

Vì sao nên dùng Auditing Error Handling And Information Exposure 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 Error Handling And Information Exposure 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 Error Handling And Information Exposure 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-error-handling-and-information-exposure. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để 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 Error Handling And Information Exposure?

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.

Có thể dùng Auditing Error Handling And Information Exposure 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 Error Handling And Information Exposure 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 Error Handling And Information Exposure 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 các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công 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à những tiêu chí mà kết quả cần đáp ứng. 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 👇