Scan your whole stack
From OX Research Newsroom
Latest version: vgit:5d59bc211dee17fb4738f961bd31522d737deedb
sentry-webhooks was last scanned on 18 Nov 2026 at commit 5d59bc21. Risk score 1 of 100 (low). No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 5d59bc21 | 1 rule fired |
Findings for commit 5d59bc21. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The skill's text or bundled scripts contain encoded content, such as a long base64 or hex string, a dense run of hex escapes, or invisible Unicode tag characters that can carry hidden instructions. Skills rarely need these. On its own this is not evidence of malicious behavior.
LOWThe score describes 5d59bc21; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Sentry (sentry.io) is the error-monitoring and application-performance platform. This skill covers Sentry's Integration Platform webhooks — the webhooks emitted by a Sentry internal integration (org-scoped, the common case) or public integration, configured under Settings → Developer Settings.
Canonical docs: Webhooks and Sentry Hook Signature.
Self-hosted Sentry runs the same code, so the scheme below is identical on a self-hosted host — only the domain changes.
Not Sentry Insurance (sentry.com), not the Sentry login/identity products, and *not `@sentry/
SDK ingest** — events POSTed *to* Sentry at/api/{project}/store/` go the other direction and authenticate with DSN keys, not HMAC. None of this applies there.
Sentry-Hook-Signature verification failing?Sentry-App-Signature and why do I get it on some requests?type field?issue.created, issue.resolved or issue.ignored?event_alert.triggered and metric_alert.critical?The resource is only in the Sentry-Hook-Resource header. The JSON body
has no type and no event field — only action. To recover the event
token you must combine them:
event = request.headers['sentry-hook-resource'] + '.' + body.action
// e.g. 'issue' + '.' + 'created' → 'issue.created'
Any handler that switches on a body field alone is wrong and will never fire.
HMAC-SHA256, lowercase hex, over the raw request body bytes, keyed with
the integration's Client Secret used as raw UTF-8. No prefix, no v1=, no
comma-separated list — the header value is a bare 64-character hex digest.
The timestamp is not part of the signed string.
const crypto = require('crypto');
// Sentry's own server: hmac.new(key=secret.encode(), msg=body.encode(),
// digestmod=sha256).hexdigest() — SentryApp.build_signature
function verifySentrySignature(rawBody, headers, clientSecret) {
if (!clientSecret) return false; // fail closed
// Try Sentry-Hook-Signature, then fall back to Sentry-App-Signature:
// UI-component requests sign identically but use the second header name.
const received = headers['sentry-hook-signature'] || headers['sentry-app-signature'];
if (!received) return false;
const body = Buffer.isBuffer(rawBody) ? rawBody : Buffer.from(rawBody ?? '', 'utf8');
const expected = crypto
.createHmac('sha256', clientSecret) // Client Secret AS-IS, never decoded
.update(body) // RAW bytes — never re-serialized JSON
.digest('hex'); // lowercase hex, NOT base64
const a = Buffer.from(String(received).trim(), 'utf8');
const b = Buffer.from(expected, 'utf8');
return a.length === b.length && crypto.timingSafeEqual(a, b); // length guard FIRST
}
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
The @sentry/* packages are error-reporting SDKs. None of them — and no
official Sentry client library in any language — ships a webhook-signature
verification helper. There is nothing to call. Do the HMAC directly with
node:crypto or Python hmac + hashlib, as the examples here do. Do not
add @sentry/node as a dependency for this.
Never re-serialize a parsed body — use the raw bytes. Sentry's docs say so
explicitly: "Compute the digest over the raw body as received. Don't parse the
JSON and serialize it again, because the result won't always match the bytes
Sentry signed." Their JS snippet takes the raw body from
express.raw({ type: "application/json" }) and the Python one passes
request.get_data(). The reason is byte-level: Sentry serializes with
simplejson configured separators=(",", ":") (compact) but leaves
ensure_ascii=True in place, so it emits \uXXXX escapes for any non-ASCII
character. Python's json.dumps defaults to ", " / ": " separators (never
matches), and JSON.stringify emits the literal UTF-8 character, so an issue
title, comment or username with an accent or an emoji produces a different
byte string and a re-serializing handler rejects a perfectly valid
delivery. Float and large-int formatting can diverge too.
Verify against the raw body: express.raw(), await request.text(),
await request.body().
Accept Sentry-App-Signature as well. Sentry's UI-component external
requests — select_options.requested, external_issue.created,
external_issue.linked, alert_rule_action.requested — sign with the same
build_signature but send the header as Sentry-App-Signature. Sentry's own
reference app checks both names on one endpoint, commented verbatim: "HACK:
The signature header may be one of these two values". Try
sentry-hook-signature, fall back to sentry-app-signature, compare both in
constant time.
Empty-body deliveries are real. Some Sentry requests arrive with an empty
body (b'') and Content-Type: application/json; the signature is then the
HMAC of the empty string (select_options.requested signs "" outright). Two
traps: a JSON body parser must not 400 on it — Sentry's reference app notes
"Flask will throw a 400 Bad Request … because Sentry sends an empty body" —
and express.json() turns an empty body into {}, so signing "{}" fails
(Sentry's own TS example special-cases stringifiedBody === '{}' ? '' : …).
Using the raw body avoids both.
No timestamp/replay check is cryptographically possible.
Sentry-Hook-Timestamp is not signed, so an attacker replaying a captured
body + signature can forge the timestamp freely. A tolerance check on the
header is worth having as a cheap replay dampener, but it is not
cryptographically bound. Sentry has no Stripe-style signed-timestamp replay
protection. Dedupe on Request-ID — that is the real protection.
Request-ID catches replays, not retries. The body carries no delivery
id. Request-ID is a uuid4 hex generated per request: Sentry's code builds a
new one on every attempt (app_platform_event.py), so a retry of
the same event arrives with a different Request-ID. Make the handler itself
idempotent (upsert by data.issue.id, set a status rather than toggle it).
No source-IP allowlist exists for sentry.io webhook egress. Do not invent one. (Sentry documents inbound ingest IPs for its own relays; that is a different direction and is not a webhook-sender allowlist.)
No handshake, no challenge. There is no echo-the-token or validation
request. For a public integration the first traffic is installation.created;
for an internal integration, webhooks simply start flowing once a URL and
resources are configured.
actor.id is str | int. When Sentry itself triggers the action it sends
{"type": "application", "id": "sentry", "name": "Sentry"} — id is the
string "sentry", not a number. Do not type it as a number.
issue.ignored vs issue.archived. The wire token is issue.ignored;
the docs call it archived. issue.archived is kept as an equivalent alias
for subscriptions stored before the rename. Handle both, drop neither.
The issue-alert resource is event_alert, not issue_alert. The header
says event_alert, which does not match the docs page title. A handler keyed
on "issue_alert" will never fire.
timingSafeEqual throws on length mismatch. Guard lengths first. An
uncaught throw becomes a 500, and repeated failures trip Sentry's circuit
breaker and can disable your webhook.
Every Integration Platform delivery is a flat JSON object with four common keys:
{
"action": "created",
"installation": { "uuid": "a8e5d37a-696c-4c54-adb5-b3f28d64c7de" },
"data": { "issue": { "id": "100", "title": "ZeroDivisionError" } },
"actor": { "type": "user", "id": 1, "name": "Meredith Heller" }
}
action — the verb only. The resource is in the header.installation.uuid — maps the delivery to an installation.actor — {type: "user" | "application", id: string | number, name}. When
another integration acts, id is that app's uuid.data — resource-specific, and customizable via UI components. Treat it
defensively: optional-chain everything.text — optional top-level human-readable "Sentry {resource}.{action}: {url}" summary, added for some alert deliveries. Treat as optional.| Header | Value |
|---|---|
Content-Type |
application/json |
Request-ID |
Per-request uuid4 hex, new on every attempt — catches replays, not retries |
Sentry-Hook-Resource |
Which resource fired — the event's first half |
Sentry-Hook-Timestamp |
UNIX seconds (str(int(time()))). Not signed. |
Sentry-Hook-Signature |
Lowercase hex HMAC-SHA256 digest |
Header names are case-insensitive over HTTP; Sentry's docs show them title-cased, Node and Starlette lowercase them.
Event tokens are {resource}.{action} — Sentry-Hook-Resource plus
body.action. Subscriptions in the Sentry UI are selected per resource,
and a resource subscription expands to all of that resource's events.
Sentry-Hook-Resource |
action values |
Notes |
|---|---|---|
installation |
created, deleted |
Public integrations; install/uninstall |
issue |
created, resolved, assigned, unresolved, ignored |
Docs call ignored "archived"; issue.archived is an equivalent alias — handle both |
error |
created |
Business plan and above only — every error event, high volume |
comment |
created, updated, deleted |
Issue comments |
event_alert |
triggered |
This is the issue-alert resource. Not issue_alert |
activity_alert |
triggered |
data.activity.type is a seer_* activity |
metric_alert |
critical, warning, resolved, open |
open is in the server enum but undocumented |
seer |
root_cause_started, root_cause_completed, solution_started, solution_completed, coding_started, coding_completed, pr_created, pr_ready_for_review, iteration_started, iteration_completed |
The last three are in the server enum; the docs list only the first seven |
preprod_artifact |
size_analysis_completed, build_distribution_completed |
Mobile builds. camelCase payload keys |
Separately, the UI-component external requests
(select_options.requested, external_issue.created,
external_issue.linked, alert_rule_action.requested) are
request/response calls Sentry makes to your integration, not subscribable
webhooks. They are the reason the Sentry-App-Signature header exists.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.