feat(core): add ERC-4337 security analysis - #118
Open
OmniZlatoon wants to merge 2 commits into
Open
Conversation
Author
|
Good day @Nanle-code , please kindly review the PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added version-aware ERC-4337 security analysis for smart accounts, EntryPoints, factories, aggregators, paymasters, modules, session keys, upgrade paths, and fallback handling.
The implementation provides bounded deterministic analysis, structured evidence, assumptions, confidence levels, stable finding IDs, CLI/server/VS Code/GitHub Action configuration, fixtures, tests, OpenAPI updates, and documentation.
Type of Change
Files Modified
packages/core/src/erc4337/packages/core/src/scanner.tspackages/core/src/types.tspackages/core/src/config.tspackages/core/src/index.tspackages/core/src/__tests__/scanner.test.tspackages/cli/src/cli.tspackages/server/src/routes/scan.tspackages/server/src/rules-registry.tspackages/server/openapi.yamlpackages/github-action/src/action.tspackages/github-action/action.ymlpackages/vscode-extension/src/extension.tspackages/vscode-extension/package.jsonexamples/contracts/erc4337/docs/erc-4337-rules.mdTesting
Validation completed:
npm run buildnpm testnpm run test:ci --workspace=packages/corenpm run docs --workspace=@chainproof/coreResults:
Note:
npm run lintis currently blocked because the repository has no ESLint configuration.Code Quality checks
Behavioural Changes
0.6,0.7, and0.8.CP-4337-*finding IDs with evidence, assumptions, and confidence metadata.Related Issues
Closes #88