Repository navigation
Conversation
Add three files to enforce supply-chain security on every PR and push
to main:
- .github/workflows/malware-pr-guard.yml
* Lockfile integrity check (pnpm install --frozen-lockfile)
* pnpm audit --audit-level=high blocks High/Critical CVEs
* Snyk SCA scan with SARIF upload to GitHub Security tab
- .github/workflows/secret-scan.yml
* Gitleaks v2 secret detection on full history (push) and PR diff
* SARIF report uploaded to GitHub Security tab on every run
- .gitleaks.toml
* Extends Gitleaks built-in ruleset
* Adds Stellar secret key, BIP-39 mnemonic, Ethereum private key,
generic API token, and Snyk token detectors
* Allowlist suppresses .wasm artifacts, Cargo.lock hashes,
test fixtures, and GHA secrets expressions
Closes StellarDevHub#1836
…nforcer - Add wasmAstInspector.ts: single-pass opcode scanner that walks the Code section at the binary level, accumulating a weighted instruction budget before wasm-metering runs. Rejects modules exceeding MAX_WEIGHTED_INSTRUCTIONS (2,000,000) with 'ast-too-complex', preventing the metering pass from becoming a pre-instantiation DoS vector. - GAS_COST_TABLE: trivial=1, memory=3, branch=5, call=10, memoryGrow=100. - wasmValidator.ts: add 'ast-too-complex' WasmValidationCode, call countWasmInstructions() after WebAssembly.validate() and before any worker is spawned. - wasmExecutionSandbox.ts: pass calibrated costTable to meterWASM so loop and call blocks cost 10 gas units each. Re-export GAS_COST_TABLE and MAX_WEIGHTED_INSTRUCTIONS. Add 'ast-too-complex' to SandboxTerminationReason. - wasmAstInspector.test.ts: unit + integration tests covering ceiling rejection, calibration invariants, and loop gas amplification. Closes StellarDevHub#1821
|
@nishantpurohit04 is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel. A member of the Team first needs to authorize it. |
This branch has not been deployed
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.
closes #1821