Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
AI & KI NachrichtenTrump’s Diesel Dilemma(23.09.2026 um 13:47 Uhr)
••••
YouTube Security VideosNeil Patel: Renting Your Traffic Is a Death Sentence #shorts(23.09.2026 um 14:02 Uhr)
••
Windows Tipps & SecurityWireless-Zukunft: APWPT wählt Silke Lalvani zur Vorsitzenden(23.09.2026 um 11:55 Uhr)
•
Windows Tipps & SecurityTobias Bargel wird CEO der Digital Classroom Group(23.09.2026 um 13:05 Uhr)
••
Windows Tipps & SecurityLG bringt 110-Zoll-Signage-Display für 24/7-Betrieb(23.09.2026 um 13:40 Uhr)
•
AI & KI NachrichtenTrump’s Diesel Dilemma(23.09.2026 um 13:47 Uhr)
••••
YouTube Security VideosNeil Patel: Renting Your Traffic Is a Death Sentence #shorts(23.09.2026 um 14:02 Uhr)
••
Windows Tipps & SecurityWireless-Zukunft: APWPT wählt Silke Lalvani zur Vorsitzenden(23.09.2026 um 11:55 Uhr)
•
Windows Tipps & SecurityTobias Bargel wird CEO der Digital Classroom Group(23.09.2026 um 13:05 Uhr)
••
Windows Tipps & SecurityLG bringt 110-Zoll-Signage-Display für 24/7-Betrieb(23.09.2026 um 13:40 Uhr)
•
Intelligence View
⚡ tsecurity.de Intelligence

Why `async def` without `await` is the #1 vibe-coding bug (and how to catch it)

Every week I see the same bug in AI-generated code: async def fetch_user_data(user_id: str): data = db.query(f"SELECT * FROM users WHERE id = '{user_id}'") return data Two bugs in 3 lines. Can you spot them? async def…

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

Every week I see the same bug in AI-generated code:




async def fetch_user_data(user_id: str):
data = db.query(f"SELECT * FROM users WHERE id = '{user_id}'")
return data






Two bugs in 3 lines. Can you spot them?





  1. async def with zero await calls — pointless async

  2. f-string in SQL — classic injection



Standard linters pass this clean. Mypy passes this clean. The CI goes green.









Why AI keeps writing this



Language models predict likely tokens. async def get_ is almost always followed by a function body that looks async. The model has seen thousands of examples where async functions return data — so it generates one that looks right but isn't.



The FAKE_ASYNC pattern:




  • Function declared async

  • No await anywhere in the body

  • No asyncio calls



It's valid Python. It runs. It just brings zero benefit and hides actual blocking calls.









The other one: SQL injection via f-string






# AI writes this constantly
query = f"SELECT * FROM users WHERE id = '{user_id}'"
cursor.execute(query)

# Should be:
cursor.execute("SELECT * FROM users WHERE id = ?", (user_id,))






The model learned f-strings from millions of examples. It also learned SQL queries from millions of examples. When it combines them, it combines the patterns — not the security awareness.









How to catch both automatically






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






Response:




{
"issues": [
{
"kind": "FAKE_ASYNC",
"severity": "WARN",
"line": 1,
"detail": "async def fetch_user_data has no await — remove async or add await"
},
{
"kind": "SQL_INJECTION_RISK",
"severity": "BLOCK",
"line": 2,
"detail": "f-string interpolation in SQL query — use parameterized query"
}
],
"passed": false
}






Or add it to GitHub CI:




- uses: Moonsehwan/aina-vibeguard-action@v1
with:
api-key: ${{ secrets.VIBEGUARD_KEY }}






Free key during beta: vg_free_test






What patterns are you seeing in your AI-generated code? Drop them below — if it's a real pattern we're not catching, we'll add it.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Why `async def` without `await` is the #1 vibe-coding bug (and how to catch it)

Thematisch verwandte Begriffe: async, without, await, vibecoding · 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-95625 | The Tauri updater plugin verifies update binaries using minisign signatu…
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