AI Slop Code RIsk Monitor

OpenZeppelin/openzeppelin-contracts

OpenZeppelin Contracts is a library for secure smart contract development.

5.9 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for OpenZeppelin/openzeppelin-contracts, a Solidity project with 27,268 GitHub stars. SynthScan examined 64,985 lines of code across 380 source files, recording 76 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 5.9 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

5.9
Adjusted Signal
5.9
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
27.3K
Stars
Solidity
Language
65.0K
Lines of Code
380
Files
76
Pattern Hits
2026-10-12
Scan Date
0.07
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 3.5/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 38 finding(s).

Hallucinated Dependency & Supply Chain Risk 21.9/100 · LOW

Are imports declared and package/API names verified? 34 finding(s).

Agent Over-Engineering Ratio 3.2/100 · LOW

Are wrappers, guards, and repeated structures necessary? 29 finding(s).

PR Review Velocity Impact 22.7/100 · LOW

Which changes need focused human review? 76 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 27HIGH 1MEDIUM 5LOW 43

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 76 distinct pattern matches across 9 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hallucination Indicators27 hits · 310 pts
SeverityFileLineSnippetContext
CRITICALtest/account/extensions/ERC7821.behavior.js53 await expect(this.ethers.predeploy.entrypoint.v09.getNonce(this.mock.target, 0)).to.eventually.equal(0);CODE
CRITICALtest/account/extensions/ERC7821.behavior.js54 await expect(this.ethers.predeploy.entrypoint.v09.handleOps([operation.packed], this.beneficiary))CODE
CRITICALtest/account/extensions/ERC7821.behavior.js75 await expect(this.ethers.predeploy.entrypoint.v09.handleOps([operation.packed], this.beneficiary)).to.revert(CODE
CRITICALtest/account/extensions/ERC7821.behavior.js99 await expect(this.ethers.predeploy.entrypoint.v09.handleOps([operation.packed], this.beneficiary))CODE
CRITICALtest/account/extensions/ERC7821.behavior.js112 this.ethers.predeploy.entrypoint.v09.handleOps([operation.packed], this.beneficiary),CODE
CRITICALtest/account/extensions/ERC7821.behavior.js135 const tx = this.ethers.predeploy.entrypoint.v09.handleOps([operation.packed], this.beneficiary);CODE
CRITICALtest/account/paymaster/PaymasterERC20.test.js272 const postOpError = ethers.predeploy.entrypoint.v09.interface.parseError(postOpRevertReason);CODE
CRITICAL⚡test/account/paymaster/Paymaster.behavior.js45 await expect(this.ethers.predeploy.entrypoint.v09.getNonce(this.account, 0n)).to.eventually.equal(0n);CODE
CRITICAL⚡test/account/paymaster/Paymaster.behavior.js46 await expect(this.ethers.predeploy.entrypoint.v09.balanceOf(this.paymaster)).to.eventually.equal(deposit);CODE
CRITICAL⚡test/account/paymaster/Paymaster.behavior.js49 const handleOpsTx = this.ethers.predeploy.entrypoint.v09.handleOps([signedUserOp.packed], this.receiver);CODE
CRITICAL⚡test/account/paymaster/Paymaster.behavior.js57 await expect(this.ethers.predeploy.entrypoint.v09.getNonce(this.account, 0n)).to.eventually.equal(1n);CODE
CRITICAL⚡test/account/paymaster/Paymaster.behavior.js58 await expect(this.ethers.predeploy.entrypoint.v09.balanceOf(this.paymaster)).to.eventually.be.lessThan(deposit);CODE
CRITICALtest/account/paymaster/Paymaster.behavior.js76 await expect(this.ethers.predeploy.entrypoint.v09.handleOps([signedUserOp.packed], this.receiver))CODE
CRITICALtest/account/paymaster/Paymaster.behavior.js105 await expect(this.ethers.predeploy.entrypoint.v09.handleOps([signedUserOp.packed], this.receiver))CODE
CRITICALtest/account/paymaster/Paymaster.behavior.js125 await expect(this.ethers.predeploy.entrypoint.v09.handleOps([signedUserOp.packed], this.receiver))CODE
CRITICAL⚡test/account/paymaster/Paymaster.behavior.js152 await expect(this.ethers.predeploy.entrypoint.v09.balanceOf(this.paymaster)).to.eventually.equal(0n);CODE
CRITICAL⚡test/account/paymaster/Paymaster.behavior.js160 await expect(this.ethers.predeploy.entrypoint.v09.balanceOf(this.paymaster)).to.eventually.equal(value);CODE
CRITICAL⚡test/account/paymaster/Paymaster.behavior.js168 await expect(this.ethers.predeploy.entrypoint.v09.balanceOf(this.paymaster)).to.eventually.equal(value - 1n);CODE
CRITICALtest/account/paymaster/Paymaster.behavior.js180 await expect(this.ethers.predeploy.entrypoint.v09.getDepositInfo(this.paymaster)).to.eventually.deep.equal([CODE
CRITICALtest/account/paymaster/Paymaster.behavior.js195 await expect(this.ethers.predeploy.entrypoint.v09.getDepositInfo(this.paymaster)).to.eventually.deep.equal([CODE
CRITICALtest/account/paymaster/Paymaster.behavior.js207 await expect(this.ethers.predeploy.entrypoint.v09.getDepositInfo(this.paymaster)).to.eventually.deep.equal([CODE
CRITICALtest/account/paymaster/Paymaster.behavior.js224 await expect(this.ethers.predeploy.entrypoint.v09.getDepositInfo(this.paymaster)).to.eventually.deep.equal([CODE
CRITICALtest/helpers/governance.js170 return this.connection.helpers.time.increaseTo.timestamp(timestamp + offset);CODE
CRITICALhardhat/hardhat-transpiler/tasks/transpile.ts57 const mainSources = hre.config.paths.sources.solidity.at(0)!;CODE
CRITICALhardhat/hardhat-exposed/tasks/build.ts22 if (!hre.config.paths.sources.solidity.includes(hre.config.exposed.outDir)) {CODE
CRITICALhardhat/hardhat-exposed/tasks/build.ts23 hre.config.paths.sources.solidity.push(hre.config.exposed.outDir);CODE
CRITICAL…hat/hardhat-oz-contracts-helpers/hook-handlers/test.ts21 const hasProxies = fs.existsSync(path.join(context.config.paths.sources.solidity.at(0)!, 'proxy/Proxy.sol'));CODE
Hyper-Verbose Identifiers25 hits · 25 pts
SeverityFileLineSnippetContext
LOWtest/token/ERC1155/ERC1155.behavior.js516 function batchTransferWasSuccessful() {CODE
LOW…y/transparent/TransparentUpgradeableProxy.behaviour.js6export function shouldBehaveLikeTransparentUpgradeableProxy() {CODE
LOWtest/access/AccessControl.behavior.js11export function shouldBehaveLikeAccessControl() {CODE
LOWtest/access/AccessControl.behavior.js226export function shouldBehaveLikeAccessControlEnumerable() {CODE
LOWtest/access/AccessControl.behavior.js263export function shouldBehaveLikeAccessControlDefaultAdminRules() {CODE
LOWtest/access/manager/AccessManager.predicate.js168export function testAsSchedulableOperation({ scheduled: { before, after, expired }, notScheduled }) {CODE
LOWtest/access/manager/AccessManager.predicate.js230export function testAsRestrictedOperation({ callerIsTheManager: { executing, notExecuting }, callerIsNotTheManager }) {CODE
LOWtest/access/manager/AccessManager.behavior.js18export function shouldBehaveLikeDelayedAdminOperation() {CODE
LOWtest/access/manager/AccessManager.behavior.js57export function shouldBehaveLikeNotDelayedAdminOperation() {CODE
LOWtest/access/manager/AccessManager.behavior.js96export function shouldBehaveLikeRoleAdminOperation(roleAdmin) {CODE
LOWtest/access/manager/AccessManager.behavior.js136export function shouldBehaveLikeAManagedRestrictedOperation() {CODE
LOWtest/access/manager/AccessManager.behavior.js193export function shouldBehaveLikeASelfRestrictedOperation() {CODE
LOWtest/utils/Context.behavior.js3export async function shouldBehaveLikeRegularContext() {CODE
LOWtest/utils/Nonces.behavior.js69export function shouldBehaveLikeNoncesKeyed() {CODE
LOWtest/account/Account.behavior.js6export function shouldBehaveLikeAccountCore() {CODE
LOWtest/account/Account.behavior.js86export function shouldBehaveLikeAccountHolder() {CODE
LOWtest/account/paymaster/Paymaster.behavior.js12export function shouldBehaveLikePaymaster({ postOp, timeRange }) {CODE
LOW…dhat/hardhat-solidity-docgen/internal/utils/natspec.ts141function cleanUpDocstringFromSource(text: string) {CODE
LOWhardhat/hardhat-exposed/internal/expose.ts134function getImportPathFromExposedContract(CODE
LOWhardhat/hardhat-exposed/internal/expose.ts165function parseApplicableRemappings(remappings: string[], projectSourcePrefixes: string[]): ParsedRemapping[] {CODE
LOWhardhat/hardhat-exposed/internal/expose.ts408function areFunctionsFullyImplemented(contract: ContractDefinition, deref: ASTDereferencer): boolean {CODE
LOWhardhat/hardhat-exposed/internal/expose.ts427function getFunctionNameQualifiedFromArgs(fn: FunctionDefinition, args: Argument[], onlyConflicting: boolean): string {CODE
LOWhardhat/hardhat-exposed/internal/expose.ts621function getAllStorageArgumentsFromCache(CODE
LOWhardhat/hardhat-exposed/internal/expose.ts631function getFunctionReturnParameters(CODE
LOWhardhat/hardhat-exposed/internal/build-info.ts3export async function compilationJobToAstOnlyBuildInfo(compilationJob: CompilationJob): Promise<SolidityBuildInfo> {CODE
Decorative Section Separators4 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUM⚡.github/workflows/release-cycle.yml4# ┌───────────┐ ┌─────────────┐ ┌────────────────┐COMMENT
MEDIUM⚡.github/workflows/release-cycle.yml6# └───────────┘ └─┬─────────▲─┘ │ └─┬────────────▲─┘COMMENT
MEDIUM⚡.github/workflows/release-cycle.yml10# ┌▼─────────┴┐ │ ┌▼────────────┴┐COMMENT
MEDIUM⚡.github/workflows/release-cycle.yml12# └───────────┘ └──────────────┘COMMENT
Over-Commented Block6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtest/access/manager/AccessManager.test.js81 user,COMMENT
LOWtest/utils/cryptography/ERC1271.behavior.js101 it('returns false for a malformed contents descriptor', async function () {COMMENT
LOWtest/account/paymaster/PaymasterERC20Guarantor.test.js41 const paymasterDomain = await getDomain(paymaster);COMMENT
LOWscripts/list-dependencies.js1#!/usr/bin/env nodeCOMMENT
LOW.github/workflows/fv-certora.yml61 # tracked ones: `contracts/<p>`, plus `fv/diff/<p, with / written as _>.patch` applied onCOMMENT
LOW.github/workflows/release-cycle.yml1# D: Manual DispatchCOMMENT
Fake / Example Data6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtest/utils/RLP.test.js214 'Lorem ipsum dolor sit amet, consectetur adipisicing elit',CODE
LOWtest/utils/RLP.test.js214 'Lorem ipsum dolor sit amet, consectetur adipisicing elit',CODE
LOWtest/utils/Bytes.test.js23 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aCODE
LOWtest/utils/Bytes.test.js23 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aCODE
LOWtest/utils/SlotDerivation.test.js50 { type: 'string', key: 'lorem ipsum', isValueType: false },CODE
LOWtest/utils/StorageSlot.test.js20 { name: 'String', type: 'string', value: 'lorem ipsum', isValueType: false, zero: '' },CODE
Verbosity Indicators3 hits · 6 pts
SeverityFileLineSnippetContext
LOW⚡test/utils/cryptography/ERC1271.behavior.js102 // Step 1: a malicious actor manages to get the user to sign a message that is not the one the app expects, buCOMMENT
LOW⚡test/utils/cryptography/ERC1271.behavior.js111 // Step 2: the malicious actor uses the signature with a contentsHash of its choosing.COMMENT
LOWtest/utils/cryptography/ERC1271.behavior.js127 // Step 3: the malicious actor submits the signature to the verifier, which must reject it.COMMENT
Structural Annotation Overuse3 hits · 6 pts
SeverityFileLineSnippetContext
LOW⚡test/utils/cryptography/ERC1271.behavior.js102 // Step 1: a malicious actor manages to get the user to sign a message that is not the one the app expects, buCOMMENT
LOW⚡test/utils/cryptography/ERC1271.behavior.js111 // Step 2: the malicious actor uses the signature with a contentsHash of its choosing.COMMENT
LOWtest/utils/cryptography/ERC1271.behavior.js127 // Step 3: the malicious actor submits the signature to the verifier, which must reject it.COMMENT
Cross-Language Confusion (JS/TS)1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHscripts/gen-nav.js76print(CODE
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/fv-certora.yml60 # A harness imports `../patched/<p>`, and `make -C fv apply` builds that file out of twoCOMMENT