Skip to content

feat: add Electron ASAR archive extractor#2141

Open
shipsteady wants to merge 1 commit into
google:mainfrom
shipsteady:feat/electron-asar-extractor
Open

feat: add Electron ASAR archive extractor#2141
shipsteady wants to merge 1 commit into
google:mainfrom
shipsteady:feat/electron-asar-extractor

Conversation

@shipsteady
Copy link
Copy Markdown
Contributor

PR for PRP #2077

Scans resources/app.asar files inside Electron app installations and
extracts bundled npm dependencies from node_modules/*/package.json
entries in the ASAR header index.

Emits pkg:npm/NAME@VERSION inventory entries matchable against OSV.dev's
npm ecosystem (217,713 entries). Covers macOS, Linux, and Windows
installation paths via case-insensitive resources/ directory check.

Registered under JavascriptArtifact in the extractor list.
Name = "javascript/electronasar"

// defaultMaxFileSizeBytes is the maximum .asar file size to attempt parsing.
defaultMaxFileSizeBytes = 500 * units.MiB
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any need to change this? IDK what is the standard value here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant