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.

  1. Install from Atlassian Marketplace: Select your Jira Cloud or Jira Service Management site and click Get it now.
  2. 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-scoped api.asUser() permissions.
  3. Verify Zero-Egress status: Confirm the top-right KPI card shows Zero-Egress Active · 100% Forge nodejs24.x · Masked KVS only.
  4. 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.

LeakScrub SecOps Findings Console showing security KPIs, JRACLOUD-78612 banner, and masked findings table

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:

  1. 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.
  2. 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 the leakscrub-redacted label.
Staged Confirm Rotated and Redact Live Value workflow on SEC-104

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 Fixture
  • Already Rotated
  • False Positive
  • Allowlisted 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.

Structured dismiss-reason selector in the LeakScrub findings table

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.

LeakScrub Rule Configuration drawer showing prefixed secret and checksummed PII rules

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.

Historical JQL Scanner showing newly surfaced masked findings in LeakScrub

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
1Finding IDStringUnique Forge KVS finding identifier.
2Issue Keye.g. SEC-104Jira or JSM issue key where the match was detected.
3Project Keye.g. SECParent Jira project key.
4LocationStringHuman-readable field label (e.g. Issue Description, Comment #41820).
5Rule IDEnum (11 rules)Deterministic detector identifier (e.g. AWS_ACCESS_KEY, AU_TFN).
6Rule NameStringDisplay name of the matched detector rule.
7SeverityCRITICAL | HIGH | MEDIUMRisk classification for triage prioritization.
8Masked Previewe.g. AKIA••••••••9X2QRedacted preview keeping only non-sensitive prefix/suffix hints.
9SHA-256 Fingerprintsha256:<64-hex>Irreversible hash for deduplication and audit correlation.
10StatusOPEN | REDACTED | DISMISSEDCurrent lifecycle status of the finding.
11Sourcetrigger | jql-scanWhether surfaced by a real-time Jira event or historical JQL sweep.
12Detected At (UTC)ISO-8601 UTCTimestamp when the finding was first recorded.
13Updated At (UTC)ISO-8601 UTCMost recent status or metadata update timestamp.
14RotatedConfirmedAtISO-8601 UTC (or blank)Timestamp when an analyst clicked Confirm Rotated.
15Redacted At (UTC)ISO-8601 UTC (or blank)Timestamp when live Jira text was scrubbed.
16DismissReasonEnum (or blank)Structured dismissal justification when status is DISMISSED.
17Changelog AdvisoryStringExplicit 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.