As of 2026-05-22 this tool is a subcommand of
mg-artifact-audit. The standalonemg-sourcemapbinary has been retired; behavior is unchanged.
Purpose
Locates .js.map files from three sources: findings from
mg-artifact-audit js, <script> tags in crawl HTML, and .map suffix probes
on known JS URLs. Downloads each map, extracts the sources[] path
list and any embedded sourcesContent[], then scans for secrets and internal path
disclosures. The sourcesContent[] array may be absent in production maps; this is
handled gracefully.
Output
sourcemap/results.json— per-map summary: source paths found, secret candidates, and internal path patterns.sourcemap/sources/<hash>/— extracted source files fromsourcesContent[]when present.
CLI
mg-artifact-audit sourcemap acme-bounty
mg-artifact-audit sourcemap acme-bounty --concurrency 5
Notes
- Source paths reveal the original project directory layout even when
sourcesContent[]is absent, which can expose framework versions, internal package names, and developer paths. - Secrets in extracted source content are masked to first 8 chars before writing.
- Lower default concurrency (5) avoids hammering CDN rate limits on large JS bundles.