LeakScrub for Jira Documentation
Complete operational reference for deploying, configuring, and auditing LeakScrub for Jira & Jira Service Management inside your Atlassian Cloud boundary.
1. Onboarding & First 2 Minutes
LeakScrub for Jira installs directly from the Atlassian Marketplace as a native Runs on Atlassian Forge app. There are no external servers to provision, no webhooks to configure, and no API tokens to manage.
- Install from Atlassian Marketplace: Select your Jira Cloud or Jira Service Management site and click Get it now.
- Authorize OAuth scopes (
Allow access): The first time a SecOps analyst opens LeakScrub Scanner (Jira Project sidebar) or LeakScrub Alerts (JSM Queue sidebar), click Allow access to grant user-scopedapi.asUser()permissions. - Verify Zero-Egress status: Confirm the top-right KPI card shows Zero-Egress Active · 100% Forge nodejs24.x · Masked KVS only.
- Run your first historical JQL sweep: Use the pre-filled project JQL query to surface any existing exposed credentials or checksummed PII, while real-time triggers monitor new issues and comments automatically.
Permissions Note
All interactive SecOps console actions (historical JQL scans, live redactions, rotation confirmations, dismissals, and rule configuration) execute strictly under api.asUser() — users can only scan and redact issues they already have Jira Browse and Edit/Comment permissions to access. Automated background Forge event triggers (avi:jira:created:issue, avi:jira:updated:issue, avi:jira:commented:issue) use read-only api.asApp() solely to inspect newly created or updated issue payloads per Atlassian Forge event-trigger architecture, never elevating interactive user privileges and never persisting raw secrets (Masked-Only KVS). See Privacy & Security for the exact 4-scope OAuth table.
3-Minute Studio Walkthrough (Overview & Quick-Start)
Watch the 3m12s narrated walkthrough covering all 7 SecOps workflows — from 27 deterministic detectors and attachment risk alerts to staged rotation, ReDoS-safe Custom RegEx rules, and the SHA-512 hash-chained audit ledger — or try the live interactive browser sandbox.
2. SecOps Findings Console
The SecOps Findings Console displays real-time KPIs (Open Critical/High, Redacted, Dismissed, and Data Residency status), the transparent JRACLOUD-78612 remediation advisory, and a filterable table of masked findings stored in Forge KVS.
Security Note — Masked-Only Persistence
Raw secrets are never written to Forge KVS, browser storage, or console logs. Every row displays only a masked preview (e.g., AKIA••••••••9X2Q) and an irreversible sha256: fingerprint for deduplication.
3. Staged Remediation: Confirm Rotated → Redact Live Value
Scrubbing text in Jira without revoking the compromised credential leaves systems exposed. LeakScrub supports a deliberate two-stage remediation loop:
- Confirm Rotated: Once the credential has been revoked and re-issued at the cloud or SaaS provider, click Confirm Rotated to record an immutable UTC rotation receipt (
RotatedConfirmedAt) and display the Rotated ✓ badge. - Redact Live Value: Click Redact Live Value to traverse the live Atlassian Document Format (ADF) issue description or comment, replace matched values with
[REDACTED BY LEAKSCRUB: RULE_ID], and automatically apply theleakscrub-redactedlabel.
4. Structured Dismiss-Reason Audit Trail
When a finding represents a test fixture, already-rotated credential, allowlisted business identifier, or false positive, SecOps analysts must select a structured reason before dismissing:
Test / Dummy FixtureAlready RotatedFalse PositiveAllowlisted Pattern
Every dismissal records the selected reason and UTC timestamp in Forge KVS and includes it in the DismissReason column of masked CSV exports for SOC 2 and ISO 27001 evidence.
5. Rule Configuration & Detector Coverage
Open Rule Config from the top-right toolbar to toggle any of the 11 deterministic detectors. LeakScrub intentionally avoids generic Shannon entropy heuristics so teams do not waste hours triaging random hashes, base64 blobs, or UUIDs.
Built-in Detector Matrix (11 High-Precision Rules)
| Rule ID | Detector Name | Category | Severity | Validation Method |
|---|---|---|---|---|
AWS_ACCESS_KEY |
AWS Access Key ID | Prefixed Secret | CRITICAL | Prefixed Regex (AKIA) |
GITHUB_TOKEN |
GitHub Personal / OAuth Token | Prefixed Secret | CRITICAL | Prefixed Regex (ghp_ / gho_ / github_pat_) |
STRIPE_LIVE_KEY |
Stripe Live Secret / Restricted Key | Prefixed Secret | CRITICAL | Prefixed Regex (sk_live_ / rk_live_) |
SLACK_TOKEN |
Slack Bot / User / App Token | Prefixed Secret | HIGH | Prefixed Regex (xoxb- / xoxp- / xapp-) |
GOOGLE_API_KEY |
Google Cloud / Maps API Key | Prefixed Secret | HIGH | Prefixed Regex (AIza, 39 chars) |
AI_PROVIDER_KEY |
OpenAI / Anthropic API Key | Prefixed Secret | CRITICAL | Prefixed Regex (sk-ant- / sk-proj-) |
PEM_PRIVATE_KEY |
PEM Private Key Block | Prefixed Secret | CRITICAL | Structured PEM Header (RSA, EC, DSA, OpenSSH, PKCS#8) |
CREDIT_CARD_LUHN |
Payment Card Number (Luhn) | Checksummed PII | HIGH | Luhn Mod-10 Checksum (13–19 digits, rejects repeated placeholders) |
AU_TFN |
Australian Tax File Number (TFN) | Checksummed PII | HIGH | ATO Mod-11 Weighted Checksum (9 digits) |
AU_ABN |
Australian Business Number (ABN) | Checksummed PII | MEDIUM | ATO Mod-89 Weighted Checksum (11 digits) |
US_SSN |
US Social Security Number | Checksummed PII | HIGH | Hyphenated SSA Area/Group/Serial Allocation Validation |
Tip — Advanced Edition Custom RegEx Packs
Teams on the Advanced Edition can layer organization-specific prefixed token patterns (such as internal bearer prefixes or customer ID formats) alongside the 11 built-in rules.
6. On-Demand Historical JQL Scanner
Real-time Jira triggers protect all newly created or updated tickets. To audit existing backlogs or prepare for compliance assessments, run any valid JQL query from the scanner bar (e.g., project = "SEC" AND updated >= -30d ORDER BY updated DESC) with a batch size of 25, 50, or 100 issues.
7. Findings & Audit CSV Export Column Schema
Clicking Export Masked CSV generates an RFC-4180 UTF-8 (BOM-prefixed) CSV named leakscrub-audit-YYYY-MM-DD.csv directly in the browser. All cells are sanitized against spreadsheet formula injection (=, +, -, @, tab, CR) and never include raw secrets.
| # | Column Header | Format / Values | Description |
|---|---|---|---|
| 1 | Finding ID | String | Unique Forge KVS finding identifier. |
| 2 | Issue Key | e.g. SEC-104 | Jira or JSM issue key where the match was detected. |
| 3 | Project Key | e.g. SEC | Parent Jira project key. |
| 4 | Location | String | Human-readable field label (e.g. Issue Description, Comment #41820). |
| 5 | Rule ID | Enum (11 rules) | Deterministic detector identifier (e.g. AWS_ACCESS_KEY, AU_TFN). |
| 6 | Rule Name | String | Display name of the matched detector rule. |
| 7 | Severity | CRITICAL | HIGH | MEDIUM | Risk classification for triage prioritization. |
| 8 | Masked Preview | e.g. AKIA••••••••9X2Q | Redacted preview keeping only non-sensitive prefix/suffix hints. |
| 9 | SHA-256 Fingerprint | sha256:<64-hex> | Irreversible hash for deduplication and audit correlation. |
| 10 | Status | OPEN | REDACTED | DISMISSED | Current lifecycle status of the finding. |
| 11 | Source | trigger | jql-scan | Whether surfaced by a real-time Jira event or historical JQL sweep. |
| 12 | Detected At (UTC) | ISO-8601 UTC | Timestamp when the finding was first recorded. |
| 13 | Updated At (UTC) | ISO-8601 UTC | Most recent status or metadata update timestamp. |
| 14 | RotatedConfirmedAt | ISO-8601 UTC (or blank) | Timestamp when an analyst clicked Confirm Rotated. |
| 15 | Redacted At (UTC) | ISO-8601 UTC (or blank) | Timestamp when live Jira text was scrubbed. |
| 16 | DismissReason | Enum (or blank) | Structured dismissal justification when status is DISMISSED. |
| 17 | Changelog Advisory | String | Explicit JRACLOUD-78612 historical changelog compliance reminder. |
8. Architectural Note: Atlassian JRACLOUD-78612
Why LeakScrub Enforces Detect → Confirm Rotated → Redact
LeakScrub scrubs live Jira issue descriptions and comments immediately via Jira Cloud REST API v3. However, Jira Cloud REST API v3 does not expose an endpoint to edit or delete historical issue changelogs (tracked publicly by Atlassian as JRACLOUD-78612).
Recommended SecOps Playbook: (1) Rotate/revoke the exposed credential immediately and click Confirm Rotated; (2) click Redact Live Value to scrub active ticket views and apply leakscrub-redacted; (3) if compliance mandates removing historical diffs (e.g., PCI-DSS or TFN/SSN leaks), restrict the issue's Security Level to SecOps or clone the sanitized issue and permanently delete the original.
9. Troubleshooting FAQ
Why does LeakScrub ask me to click "Allow access" on first open?
Atlassian Forge requires per-user OAuth consent when an app executes Jira REST API calls under api.asUser(). This ensures historical JQL scans and live redactions strictly respect your personal Jira project and issue security permissions.
Why didn't a random high-entropy password or UUID trigger an alert?
By design. Generic Shannon entropy scanners generate massive alert fatigue on Jira tickets full of commit SHAs, stack traces, and base64 payloads. LeakScrub focuses exclusively on deterministic prefixed secrets and mathematically checksummed PII so every alert is actionable.
Does LeakScrub send ticket text to Capeward servers or an AI model?
Never. LeakScrub's manifest.yml declares zero external fetch domains and zero remotes. All scanning runs locally inside Atlassian Forge nodejs24.x compute in your site's Atlassian Data Residency region.
Why did "Redact Live Value" say I don't have permission on a specific issue?
Because redactions execute as the signed-in Jira user (api.asUser()), you need Edit Issues (for descriptions) or Edit All Comments (for comments) permission in that project's permission scheme.
10. Changelog
| Version | Highlights |
|---|---|
| v2.2 Current | Expanded to 27 zero-noise deterministic detectors (adding GitLab, npm, PyPI, SendGrid, Twilio, Shopify, HashiCorp Vault, Databricks, HuggingFace, Structured JWT, DB Connection URIs, Azure SAS, GCP Service Account, AU Medicare Mod-10, IBAN ISO 13616 Mod-97, and metadata-only Sensitive Attachment Risk Scanner), upgraded deduplication to per-tenant keyed HMAC-SHA-512, added append-only SHA-512 hash-chained audit ledger with verifyAuditChain(), Custom RegEx Rule Packs + ReDoS-safe Live Test Bench, Project/Fingerprint Allowlists, Bulk Remediation (≤20/batch), 1-Click Safe Rotation Nudge Comment, and SOC 2 / ISO 27001 / APRA CPS 234 Compliance JSON Pack export. |
| v2.1 | Added staged Confirm Rotated key rotation receipts (RotatedConfirmedAt), structured 4-option DismissReason audit trail, 17-column RFC-4180 formula-safe CSV export, Playwright E2E test suite, and interactive browser sandbox. |
| v2.0 | Rebranded to LeakScrub for Jira by Capeward on Atlassian Forge nodejs24.x with 11 deterministic prefixed-secret & checksummed-PII detectors (including AU TFN mod-11 & AU ABN mod-89), masked-only Forge KVS storage, historical JQL scanner, 1-click live ADF redaction, and automated CI Zero-Egress gate. |