Habr•October 8, 2026•🇷🇺Translated from Russian

Security Researcher Builds SAST Scanner for AI-Generated Code and Audits 3,800 Public Repositories

A developer has published AigisSAST, a console-based static application security testing tool designed specifically for code produced by AI assistants such as Cursor. The scanner, written in approximately 3,000 lines of pure Python without any external dependencies, parses code using AST rather than simple pattern matching to reduce false positives on strings that resemble secrets.

The researcher ran the tool against roughly 3,800 public repositories. The first round targeted 126 projects explicitly marked as AI-generated through files such as .cursorrules or CLAUDE.md. Subsequent rounds examined 49 large open-source platforms, 2,292 smaller projects including Telegram bots and VPN panels, 471 production bots handling real payments via Stars, CryptoBot and YooKassa, and finally 879 additional repositories scanned blindly.

Key findings included 16,378 high or critical alerts in the initial pass on the 471 live bots; after manual triage only about 30 proved to be genuine exposures. These comprised Telegram bot tokens, OpenAI and Google service-account keys, MongoDB and TiDB connection strings with embedded passwords, and full .env files containing Marzban and 3x-ui credentials. Ten secrets were present in the current working tree while 22 existed only in Git history.

The scanner implements 21 rules covering hardcoded tokens for Telegram, GitHub, AWS and Stripe, SQL and command injection via f-strings, unsafe use of pickle and eval, missing JWT signature verification, overly permissive CORS, debug mode left enabled, and database ports exposed on 0.0.0.0. Each finding is accompanied by a human-readable explanation, risk description and suggested remediation, with secrets automatically masked before display.

AigisSAST also offers an automatic fix mode that moves secrets into .env files, updates .gitignore, replaces random token generation with the secrets module, disables debug flags, and hardens Docker and YAML configurations. SQL injection and JWT issues are left untouched because safe fixes require application-specific logic.

The author stresses that the project deliberately avoids any active validation of discovered credentials. No tokens were tested against live services, and the scanner only reads publicly available code. The complete source code is released under the MIT license on GitHub, and the developer invites community feedback through issues and pull requests to further reduce false positives.

Related articles

Habr•Supply Chain & Open Source

Vendor Responsibility in Open Source: Licensing Obligations Exposed by Sonatype Nexus Changes

The article examines how vendors building products on copyleft open source projects like Nexus Repository OSS inherit significant legal and security responsibilities under licenses such as EPL 1.0. Sonatype's February 2025 shift from regular OSS binary releases to a limited Community Edition forces downstream vendors to handle their own builds, patch porting, and compliance disclosures. This change highlights the second part of copyleft licenses that outlines obligations for distributors, including revealing modifications and assuming liability for the final product. Security implications arise because critical vulnerabilities in the upstream project must now be tracked and patched by the vendor, with delays creating measurable supply chain risks. The piece provides a practical checklist for buyers to assess licensing hygiene, SBOM availability, and vulnerability response times in any open source-based solution.

AntiMalware•Supply Chain & Open Source

PhantomSub Campaign Deploys 101 Malicious npm Packages to Hijack WhatsApp Accounts for Unauthorized Channel Subscriptions

Researchers at OX Security uncovered 101 malicious npm packages tied to the PhantomSub campaign that abuse connected WhatsApp accounts to subscribe users to promotional channels without consent. The packages disguise themselves as modified versions of the open-source Baileys library used for WhatsApp automation. Attackers rely on authenticated sessions rather than simple package installation, allowing them to control subscriptions through lists stored on GitHub, in plaintext, or as encoded identifiers. The packages have accumulated roughly 490,000 downloads, including 116,000 in the past 30 days, though the exact number of compromised accounts remains unknown. As of 28 September, npm had removed only 16 of the identified packages. The operation ultimately benefits channels selling bots, game resources, accounts, and promotion services by inflating subscriber counts while disabling notifications to hide the activity.

Habr•Supply Chain & Open Source

AI Model Hallucinations Fuel Slopsquatting Attacks on PyPI and npm Registries

Researchers identified 139 package names consistently hallucinated by five different AI models across Python and JavaScript ecosystems. Seven of these names are already registered on PyPI and npm, including one previously used to distribute malware. The attack vector, termed slopsquatting, allows attackers to register AI-suggested package names and execute code with developer privileges during installation. One package, metro-evaluator, contained malicious code removed by npm in December 2025, while another empty package css-color-stop began receiving downloads after the list was published. Real projects such as odf and lusid now occupy names that AI models recommend, causing developers to install unrelated software. Studies show hallucination rates between 4.62% and 21.7% depending on the model, with commercial models performing better than open-source ones. The findings highlight risks when AI coding agents execute dependency installation commands without human verification.

Habr•Supply Chain & Open Source

Sapper Revives Minefield to Deliver Accurate SBOM-Based Vulnerability Impact Reports for Cyber Resilience Act Compliance

Developer Perruer has forked the archived BitBom project Minefield into a new open-source tool called Sapper, fixing critical bugs in dependency graph construction and vulnerability matching. The original Minefield used roaring bitmaps and Tarjan's algorithm to build transitive dependency caches from SBOMs in O(n + m) time, but it incorrectly interpreted SPDX edge directions from protobom 0.6, creating false cycles and massively inflating dependent package counts. Additional fixes addressed SQLite memory database pooling issues, OSV range sorting errors with Go pseudo-versions and ECOSYSTEM ecosystems, and slow OSV ingestion by adding a package name index. Sapper now produces prioritized reports using CISA KEV and EPSS scores, showing exact shortest paths from vulnerable packages to root products while respecting OpenVEX statements. The tool maintains full air-gapped operation and supports CycloneDX 1.3–1.7 and SPDX 2.x formats. These improvements directly help organizations meet the 24-hour notification requirements under the EU Cyber Resilience Act for actively exploited vulnerabilities.