AI Slop Code Risk Monitor

phpseclib/phpseclib

SlopCodeMonitor badge for phpseclib/phpseclib Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

PHP Secure Communications Library

2.0 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for phpseclib/phpseclib, a PHP project with 5,603 GitHub stars. SynthScan examined 89,542 lines of code across 618 source files, recording 167 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 2.0 (Low 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.

2.0
Adjusted Signal
2.0
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
5.6K
Stars
PHP
Language
89.5K
Lines of Code
618
Files
167
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 9.3/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.2/100 · LOW

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

Agent Over-Engineering Ratio 8.0/100 · LOW

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

PR Review Velocity Impact 9.4/100 · LOW

Which changes need focused human review? 167 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 0HIGH 0MEDIUM 5LOW 162

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 167 distinct pattern matches across 4 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.

Hyper-Verbose Identifiers148 hits · 150 pts
SeverityFileLineSnippetContext
LOWphpseclib/Net/SSH2.php1058 public function sendIdentificationStringFirst(): voidCODE
LOWphpseclib/Net/SSH2.php1072 public function sendIdentificationStringLast(): voidCODE
LOWphpseclib/Net/SSH2.php4493 public function getRawServerIdentification(): stringCODE
LOWphpseclib/Net/SSH2.php4530 public static function getSupportedKEXAlgorithms(): arrayCODE
LOWphpseclib/Net/SSH2.php4564 public static function getSupportedHostKeyAlgorithms(): arrayCODE
LOWphpseclib/Net/SSH2.php4581 public static function getSupportedEncryptionAlgorithms(): arrayCODE
LOWphpseclib/Net/SSH2.php4702 public static function getSupportedMACAlgorithms(): arrayCODE
LOWphpseclib/Net/SSH2.php4732 public static function getSupportedCompressionAlgorithms(): arrayCODE
LOWphpseclib/Net/SSH2.php5068 public static function getConnectionByResourceId(string $id): ?SSH2CODE
LOWphpseclib/Net/SSH2.php5149 public function setBytesUntilKeyReexchange(int $bytes): voidCODE
LOWphpseclib/Net/SFTP.php551 public function enablePathCanonicalization(): voidCODE
LOW⚡phpseclib/Net/SFTP.php563 public function disablePathCanonicalization(): voidCODE
LOW⚡phpseclib/Net/SFTP.php573 public function enableArbitraryLengthPackets(): voidCODE
LOW⚡phpseclib/Net/SFTP.php583 public function disableArbitraryLengthPackets(): voidCODE
LOWphpseclib/File/ASN1.php730 public static function isBlobsOnBadDecodesEnabled(): boolCODE
LOWphpseclib/File/ASN1.php1506 public static function convertTypeConstantToString(int $type): stringCODE
LOWphpseclib/File/SPKAC.php210 public function identifySignatureAlgorithm(PrivateKey $key): voidCODE
LOWphpseclib/File/CRL.php369 public static function listValidRevocationReasons(): arrayCODE
LOWphpseclib/File/CRL.php476 public function identifySignatureAlgorithm(PrivateKey $key): voidCODE
LOWphpseclib/File/CRL.php492 public function setAuthorityKeyIdentifier(string|OctetString $value): voidCODE
LOWphpseclib/File/CSR.php415 public function identifySignatureAlgorithm(PrivateKey $key): voidCODE
LOWphpseclib/File/X509.php256 public static function isStrictDNComparisonEnabled(): boolCODE
LOWphpseclib/File/X509.php287 public static function isCheckBasicConstraintsEnabled(): boolCODE
LOWphpseclib/File/X509.php709 public function setAuthorityKeyIdentifier(string|OctetString $value): voidCODE
LOWphpseclib/File/X509.php742 public function createSubjectKeyIdentifier(int $method = 1): stringCODE
LOWphpseclib/File/X509.php1088 public function identifySignatureAlgorithm(PrivateKey $key): voidCODE
LOWphpseclib/File/X509.php1326 private function validateSignatureCountable(bool $caonly, int $count): boolCODE
LOWphpseclib/File/ASN1/Constructed.php110 private function calculateIndefiniteLength(int &$offset, int $depth = 1): intCODE
LOWphpseclib/File/Common/Signable.php28 public function identifySignatureAlgorithm(PrivateKey $key): void;CODE
LOWphpseclib/File/Common/Traits/ASN1Signature.php38 private static function identifySignatureAlgorithmHelper(PrivateKey $key): arrayCODE
LOWphpseclib/File/Common/Traits/Extension.php322 private static function getExtensionCriticalValue(string $name): boolCODE
LOWphpseclib/File/CMS/SignedData.php227 public function identifySignatureAlgorithm(PrivateKey $key): voidCODE
LOWphpseclib/File/CMS/SignedData.php339 public function recalculateHashAlgorithms(): voidCODE
LOWphpseclib/File/CMS/EncryptedData.php473 public function createNewRecipientFromPassword(#[\SensitiveParameter] string $password, string $encryptionAlgorithm CODE
LOWphpseclib/File/CMS/EncryptedData.php526 public function createNewRecipientFromKeyWithIdentifier(CODE
LOWphpseclib/File/CMS/SignedData/Signer.php531 public function identifySignatureAlgorithm(PrivateKey $key): voidCODE
LOWphpseclib/Crypt/RSA.php812 public static function enableSaltLengthDiscovery(): voidCODE
LOWphpseclib/Crypt/RSA.php817 public static function disableSaltLengthDiscovery(): voidCODE
LOWphpseclib/Crypt/EC/Formats/Keys/Common.php397 private static function deriveMontgomeryPublicKey(array $components): arrayCODE
LOWphpseclib/Crypt/Common/SymmetricKey.php2276 protected function createInlineCryptFunction(array $cipher_code): \ClosureCODE
LOWphpseclib/Crypt/Common/Formats/Keys/PKCS8.php330 public static function extractEncryptionAlgorithm(#[\SensitiveParameter] string $key): arrayCODE
LOW…seclib/Crypt/Common/Traits/ASN1AlgorithmIdentifier.php202 private static function getCryptoObjectFromAlgorithmIdentifier(CODE
LOW…seclib/Crypt/Common/Traits/ASN1AlgorithmIdentifier.php310 private static function getCryptoObjectFromParams(string $password, array $options): SymmetricKeyCODE
LOWphpseclib/Math/BigInteger.php715 public function createRecurringModuloFunction(): \ClosureCODE
LOWphpseclib/Math/BinaryField/Integer.php87 public static function setRecurringModuloFunction($instanceID, callable $function): voidCODE
LOWphpseclib/Math/BinaryField/Integer.php182 private static function regularPolynomialMultiply(string $x, string $y): stringCODE
LOWphpseclib/Math/PrimeField/Integer.php112 public static function setRecurringModuloFunction(int $instanceID, callable $function): voidCODE
LOWphpseclib/Math/BigInteger/Engines/Engine.php1041 public function createRecurringModuloFunction(): \ClosureCODE
LOWphpseclib/Math/BigInteger/Engines/GMP.php539 public function createRecurringModuloFunction(): \ClosureCODE
LOWtests/PsalmBaselineTest.php11 public function testErrorTypesAreNotBaselined(): voidCODE
LOWtests/Unit/Net/SSH2UnitTest.php64 public function testTripleDESCTRUsesCTRMode(): voidCODE
LOWtests/Unit/Net/SSH2UnitTest.php99 public function testGetExitStatusIfNotConnected(): voidCODE
LOWtests/Unit/Net/SSH2UnitTest.php123 public function testQuietModeDefaultValue(): voidCODE
LOWtests/Unit/Net/SSH2UnitTest.php141 public function testGetConnectionByResourceId(): voidCODE
LOWtests/Unit/Net/SSH2UnitTest.php214 public function testTimeoutCountdownEndingOnZero(): voidCODE
LOWtests/Unit/Net/SSH2UnitTest.php274 public function testSendChannelPacketNoBufferedData(): voidCODE
LOWtests/Unit/Net/SSH2UnitTest.php299 public function testSendChannelPacketBufferedData(): voidCODE
LOWtests/Unit/Net/SSH2UnitTest.php325 public function testSendChannelPacketTimeout(): voidCODE
LOWtests/Unit/Net/SSH2UnitTest.php353 public function testSendChannelPacketNoWindowAdjustment(): voidCODE
LOWtests/Unit/Net/SFTPStreamUnitTest.php18 public function testRegisterWithoutArgument(): voidCODE
88 more matches not shown…
AI Slop Vocabulary5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMphpseclib/Crypt/Salsa20.php213 // Salsa20 does not utilize this methodCOMMENT
MEDIUMphpseclib/Crypt/Salsa20.php264 // Salsa20 does not utilize this methodCOMMENT
MEDIUMphpseclib/Crypt/Salsa20.php273 // Salsa20 does not utilize this methodCOMMENT
MEDIUMphpseclib/Crypt/RC4.php177 // RC4 does not utilize this methodCOMMENT
MEDIUMphpseclib/Crypt/RC4.php186 // RC4 does not utilize this methodCOMMENT
Over-Commented Block10 hits · 10 pts
SeverityFileLineSnippetContext
LOWphpseclib/Net/SSH2.php4661 // as you encrypt stuff. the only table lookups are made against this keystream and thus tableCOMMENT
LOWphpseclib/File/CMS/SignedData.php561 //case isset($cert['extendedCertificate']): // obsoleteCOMMENT
LOWphpseclib/File/CMS/EncryptedData.php741 {COMMENT
LOWphpseclib/File/CMS/EncryptedData.php761 //case isset($cert['v1AttrCert']): // obsoleteCOMMENT
LOWphpseclib/File/CMS/SignedData/Signer.php341 ];COMMENT
LOWphpseclib/Crypt/RSA.php961 }COMMENT
LOWphpseclib/Crypt/ChaCha20.php61 $this->key_length == 32 &&COMMENT
LOW…lib/Math/BigInteger/Engines/PHP/Reductions/Barrett.php121 // note that these are upper bounds. let's say m.length is 2. then you'd be multiplying aCOMMENT
LOWtests/Unit/Crypt/RC2Test.php61 // whereas RC2 does. and technically, AES / Rijndael (and even Twofish) don't support arbitrary key lengths - thCOMMENT
LOWtests/Unit/Crypt/EC/KeyTest.php581////////////////////////////////////////////////////////////////COMMENT
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/Unit/File/X509/X509Test.php1588 'John Doe',CODE
LOWtests/Unit/File/X509/CSRTest.php198 $csr->addDNProp('id-at-emailAddress', 'admin@example.com');CODE
LOWtests/Unit/File/CMS/SignedDataTest.php215 'John Doe',CODE
LOWtests/Unit/Crypt/RSA/LoadKeyTest.php57 ['user@example.com'],CODE