Logo Auditing Message Broker Topic Authorization

Auditing Message Broker Topic Authorization

Tổ chức
UnboundCompute
auditing-message-broker-topic-authorization

Audit message-broker topic and queue authorization for reach a client should not have: a wildcard subscription that receives another tenant's messages, a publish permission broad enough to inject into a control or command topic, a shared broker where topic naming is the only separation between tenants, and a client authenticated to the broker but not authorized per topic so any connection can read or write any topic. Covers MQTT, Kafka, AMQP, and similar brokers where publish and subscribe permissions on topics or queues are the boundary between producers, consumers, and tenants. Use when a broker carries messages across trust boundaries and topic-level authorization is the control. The client publishing or subscribing is the source, the topic or queue it reaches is the sink, and the wildcard or missing per-topic authorization that admits it is the bug.

Tổng quan

Nhà phát hànhUnboundCompute
Kho mãsecurity-agent-skills
Tên kỹ năngauditing-message-broker-topic-authorization
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 Message Broker Topic Authorization 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-message-broker-topic-authorization
  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-message-broker-topic-authorization .claude/skills/auditing-message-broker-topic-authorization
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 Message Broker Topic Authorization 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 Message Broker Topic Authorization 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 Message Broker Topic Authorization 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 message-broker topic authorization: when a wildcard subscribes to everyone

A message broker is a shared channel that many producers and consumers, often many tenants, talk through, and topic authorization is what keeps one client's messages from reaching another's. That boundary is thinner than it looks. Authenticating to the broker is not the same as being authorized per topic: a broker that checks the connection but not the topic lets any authenticated client read or write any topic. Wildcards make it worse, a subscription with a wildcard can match another tenant's topics and receive their messages, and a broad publish permission can inject into a control or command topic that consumers act on. And on a shared broker, topic naming is frequently the only thing separating tenants, which is a convention, not an enforced boundary. The audit asks, for each client, exactly which topics it can publish to and subscribe to, and whether that matches its role. You audit this by enumerating effective topic permissions and testing cross-tenant reach.

When to use

  • A broker (MQTT, Kafka, AMQP, or similar) carries messages across producer, consumer, or tenant boundaries.
  • Clients authenticate to the broker but topic-level publish and subscribe authorization may be missing.
  • Wildcard subscriptions or broad publish grants may cross topics or tenants on a shared broker.

Scope check

Test broker authorization only on brokers you own or are authorized to assess, on non-production topics. Subscribing or publishing exercises a live broker and can receive or inject real messages, so use non-production topics and never read another tenant's real messages or inject into a live command topic. If you can't name the authorization, stop.

The loop

  1. Establish each client's intended topics first. Name, per client or tenant, exactly which topics it should publish to and which it should subscribe to. This is the false-positive killer: a client authorized to precisely its own topics for precisely the direction it needs, with no wildcard crossing tenants, is correctly scoped. Name the intended topic map, then compare effective permissions to it.

  2. Confirm per-topic authorization exists. Determine whether the broker authorizes publish and subscribe per topic or merely authenticates the connection. A broker that admits any authenticated client to any topic has no topic boundary at all, so the first check is whether topic-level access control is enforced, not just connection authentication.

  3. Enumerate wildcard and broad grants. For each client, read its publish and subscribe permissions and flag wildcards and broad prefixes. A wildcard subscription can match other tenants' topics and receive their messages; a broad publish grant can reach control, command, or other tenants' topics. Compute what each wildcard actually matches across the topic space, not what it was intended to match.

  4. Check the direction of each grant. Confirm publish and subscribe are scoped separately and correctly: a consumer that only needs to read should not be able to publish, and a producer that only needs to write should not be able to subscribe to responses it should not see. A grant that conflates the two directions widens reach beyond the client's role.

  5. Check tenant separation on a shared broker. Where tenants share a broker, determine whether topic naming is the only separation or whether per-tenant authorization enforces it. If naming is the boundary, test whether a client can publish or subscribe to another tenant's topic by naming it, since a naming convention without enforcement is not isolation.

  6. Confirm and record. Confirm by subscribing to or publishing on a topic a client should not reach, a wildcard receiving another tenant's non-production message, or a publish into a control topic, without reading real messages or injecting into a live command path. Kill the lead if the broker enforces per-topic authorization, no wildcard or broad grant crosses tenants or reaches control topics, publish and subscribe are separately scoped, and tenant separation is enforced rather than by naming alone. Record the client source, the topic or queue sink, and the wildcard or missing per-topic authorization that admitted it.

Where topic authorization leaks

  • Connection auth is not topic auth. A broker that authenticates the client but not the topic lets any connection read or write any topic.
  • A wildcard subscription catches other tenants. A subscription wildcard that matches beyond the client's topics receives messages it was never meant to see.
  • A broad publish grant reaches control topics. A wide publish permission injects into command or control topics that consumers act on.
  • Publish and subscribe conflated widen reach. A grant that does not separate the two directions lets a producer read responses or a consumer inject messages.
  • Naming is not isolation. On a shared broker, topic naming as the only tenant separation is a convention a client can step outside by naming another tenant's topic.

Worked example (a confirm and a kill)

Confirm. A shared MQTT broker authenticates clients but authorizes subscriptions loosely, and a tenant's client holds a wildcard subscription intended for its own device topics. The wildcard also matches another tenant's device topics under a shared prefix, so the client receives the other tenant's non-production telemetry, and a broad publish grant lets it publish into a command topic those devices act on. Confirmed cross-tenant reach via wildcard subscription and broad publish, high, remediation = enforce per-topic authorization scoped to each tenant's own topics, replace wildcards with explicit per-tenant topic grants, and separate publish and subscribe permissions so no client can inject into command topics it only consumes.

Kill. The broker authorizes every publish and subscribe per topic, each client is granted only its own tenant's topics with no wildcard that crosses tenants, publish and subscribe are scoped separately to the client's role, and tenant separation is enforced by authorization rather than topic naming. A client naming another tenant's topic is refused for both directions. Killed, kill_reason = "per-topic authorization enforced with no cross-tenant wildcard, publish and subscribe separately scoped, and enforced tenant separation; no client reaches a topic outside its role."

Rationalizations to reject

  • "Clients authenticate to the broker." → Authentication is not per-topic authorization; confirm the broker checks the topic, or any authenticated client reads and writes any topic.
  • "The wildcard is just for our topics." → Compute what the wildcard actually matches across the whole topic space; a shared prefix makes it catch other tenants.
  • "They only consume, they cannot publish." → Confirm publish and subscribe are separately scoped; a conflated grant lets a consumer inject into command topics.
  • "Tenants use their own topic names." → Naming is a convention, not a boundary; test whether a client can name and reach another tenant's topic.
  • "It is an internal broker." → Internal brokers still carry cross-tenant and control messages; topic authorization is the boundary regardless of network placement.

Executing this in practice

You need each client's effective publish and subscribe permissions, whether the broker enforces per-topic authorization, what every wildcard actually matches, the separation of the two directions, and how tenants are separated. For each client, compare its effective topic reach to its role and test a cross-topic or cross-tenant access. Reading the broker's authorization rules shows the intended map; subscribing or publishing to a should-be-unreachable topic shows whether it holds.

Related

  • auditing-observability-pipeline-collector-trust - telemetry often flows over a broker; unauthenticated ingestion and broad topic reach are the same trust gap at different points.
  • auditing-namespace-as-tenant-boundary - the same tenant-separation-by-convention failure, here on broker topics instead of Kubernetes namespaces.
  • auditing-serverless-event-source-trust - broker topics are event sources for consumers; whether the consumer trusts the message is the paired question.
  • mapping-attack-surface - use it to enumerate the brokers, topics, and clients crossing trust boundaries before auditing each grant.
  • FINDING-SCHEMA.md - source = the client publishing or subscribing, sink = the topic or queue it reaches, evidence = the wildcard or missing per-topic authorization that admitted it.

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

Kỹ năng AI Auditing Message Broker Topic Authorization làm được gì?

Audit message-broker topic and queue authorization for reach a client should not have: a wildcard subscription that receives another tenant's messages, a publish permission broad enough to inject into a control or command topic, a shared broker where topic naming is the only separation between tenants, and a client authenticated to the broker but not authorized per topic so any connection can read or write any topic. Covers MQTT, Kafka, AMQP, and similar brokers where publish and subscribe permissions on topics or queues are the boundary between producers, consumers, and tenants. Use when a...

Vì sao nên dùng Auditing Message Broker Topic Authorization 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 Message Broker Topic Authorization 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 Message Broker Topic Authorization 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-message-broker-topic-authorization. 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 Message Broker Topic Authorization?

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 Message Broker Topic Authorization 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 Message Broker Topic Authorization 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 Message Broker Topic Authorization 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 👇