Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Windows Tipps & SecurityMazda CX-5 im Test: Familien-SUV mit guten Fahreigenschaften(21.09.2026 um 15:30 Uhr)
Unix & Linux ServerSecurity: Mehrere Probleme in pcre2 (SUSE)(21.09.2026 um 16:22 Uhr)
Unix & Linux ServerSecurity: Überschreiben von Dateien in abrt (Red Hat)(21.09.2026 um 16:22 Uhr)
Unix & Linux ServerSecurity: Zwei Probleme in libvirt (Red Hat)(21.09.2026 um 16:22 Uhr)
Windows Tipps & SecurityMazda CX-5 im Test: Familien-SUV mit guten Fahreigenschaften(21.09.2026 um 15:30 Uhr)
Unix & Linux ServerSecurity: Mehrere Probleme in pcre2 (SUSE)(21.09.2026 um 16:22 Uhr)
Unix & Linux ServerSecurity: Überschreiben von Dateien in abrt (Red Hat)(21.09.2026 um 16:22 Uhr)
Unix & Linux ServerSecurity: Zwei Probleme in libvirt (Red Hat)(21.09.2026 um 16:22 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

The 15 bugs AI coding assistants generate over and over (and a scanner that catches them)

AI coding assistants are fast. They're also surprisingly consistent at making the same class of structural mistakes. After scanning hundreds of AI-generated files, I kept seeing the same patterns: # Pattern 1: MISSING_WRITE # AI…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

AI coding assistants are fast. They're also surprisingly consistent at making the same class of structural mistakes.



After scanning hundreds of AI-generated files, I kept seeing the same patterns:




# Pattern 1: MISSING_WRITE
# AI generates a save function that never actually saves
def save_user(data):
validate(data)
return {"status": "saved"} # no INSERT, no UPDATE, nothing

# Pattern 2: FAKE_ASYNC
# async keyword with no await anywhere
async def fetch_data(url):
return requests.get(url) # synchronous, blocks the event loop

# Pattern 3: STUB_SKELETON
# Placeholder that looks complete but does nothing
def analyze_sentiment(text):
return {} # zero logic






These aren't random bugs. They're structural patterns that appear across languages and models — GPT-4, Claude, Gemini, Copilot. The AI writes code that looks correct at a glance but breaks at runtime.



The problem: existing scanners weren't designed for this. Bandit and Semgrep catch security vulnerabilities. They don't check whether your save_user() actually saves.






What I built



AINAScan — a deterministic AST scanner with:





  • 15 vibe-coding patterns (the structural bugs above)


  • 33 security patterns (SQL injection, SSRF, path traversal, command injection, XSS, etc.)


  • 9 languages: Python, JS, TS, Go, Ruby, Java, PHP, Kotlin, C/C++

  • No LLM involved — same code always produces the same result






The 15 vibe-coding patterns








































































Pattern What it catches
MISSING_WRITE save/store function with no DB write
FAKE_ASYNC async def with no await
STUB_SKELETON function that just returns {} or None
DEAD_CALL_RESULT calls 3 services, ignores all return values
HARDCODED_TABLE 40-key dict replacing what should be a DB query
INPUT_OUTPUT_DISCONNECTED params never used in function body
TRIVIAL_IF_CHAIN 7+ elif branches with no DB lookup
MOCK_PATTERN MagicMock in production code
EMPTY_EXCEPT except: pass swallowing errors silently
MISSING_ERROR_HANDLING external API calls with no try/catch
TRIVIAL_ASSERT assert True in tests
TODO_PLACEHOLDER TODO/FIXME left in production
PARAM_SHADOW parameter shadowed by local variable
SHORT_PASSTHROUGH wrapper that adds no value
CONST_SQL_NO_PARAM SQL WHERE with hardcoded value





Try it (30 seconds, no signup)






curl -X POST https://pleasing-transformation-production-90c2.up.railway.app/v1/scan \
-H "X-API-Key: vg_free_test" \
-F "file=@your_agent.py"






Response looks like:




{
"passed": false,
"block_count": 2,
"warn_count": 1,
"issues": [
{
"kind": "MISSING_WRITE",
"severity": "BLOCK",
"line": 12,
"detail": "function 'save_user' claims to save but contains no DB write call"
}
]
}









GitHub Action — catch vibe-coding bugs in PRs






name: VibeGuard Security Scan
on: [pull_request]

jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Moonsehwan/aina-vibeguard-action@v1
with:
api-key: ${{ secrets.VIBEGUARD_KEY }}
fail-on-block: 'true'









False positive design



One thing I spent a lot of time on: upstream sanitizer detection.



Before flagging a path traversal issue, the scanner checks 60 lines before the sink for guard patterns:




if '..' in path:
return 400 # scanner sees this
filepath = open(path) # and downgrades BLOCK to WARN






This cut the false positive rate on well-maintained open source repos (Django, FastAPI, celery) from ~40% down to near zero.



I also tested on 10 repos with 100k+ GitHub stars — 0 false positives on legitimate code.






Links





Questions welcome — especially curious what vibe-coding patterns others are seeing in their AI-generated codebases.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten The 15 bugs AI coding assistants generate over and over (and a scanner that catches them)

Thematisch verwandte Begriffe: bugs, coding, assistants, generate · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94216 | A vulnerability was determined in ST Engineering iDirect Evolution and V…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick