<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/ai-strikes-back-using-an-llm-to-write-cobol-6d1aer2nw" -->

---
title: AI Strikes Back: Using an LLM to write COBOL | daily.dev
description: A developer used GitHub Copilot to build a browser-based COBOL IDE with zero prior COBOL experience, and it worked impressively well. However, reading the...
canonical: https://daily.dev/posts/ai-strikes-back-using-an-llm-to-write-cobol-6d1aer2nw
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: AI Strikes Back: Using an LLM to write COBOL | daily.dev
og:description: A developer used GitHub Copilot to build a browser-based COBOL IDE with zero prior COBOL experience, and it worked impressively well. However, reading the...
og:url: https://daily.dev/posts/ai-strikes-back-using-an-llm-to-write-cobol-6d1aer2nw
og:image: https://api.daily.dev/og/posts/6D1Aer2Nw.png
og:image:alt: AI Strikes Back: Using an LLM to write COBOL
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Strikes Back: Using an LLM to write COBOL

**[marmelab](https://daily.dev/sources/Marmelab)** · 7 min read · 18 upvotes · 1 comments

## Summary

A developer used GitHub Copilot to build a browser-based COBOL IDE with zero prior COBOL experience, and it worked impressively well. However, reading the generated code revealed a critical remote code execution vulnerability: user-submitted COBOL was compiled and run directly on the server with no sandboxing. Copilot never flagged the security issue unprompted, but identified it clearly when explicitly asked. Three remediation approaches are discussed — Docker container isolation, syscall filtering, and compiling COBOL to WebAssembly for client-side execution. The key takeaway is that AI coding tools build what you describe, not what is safe to deploy; the judgment to ask the right security questions still requires a developer in the loop.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://marmelab.com/blog/2026/04/08/cobol-ai-strikes-back.html>

## Community discussion

Top comments from developers on daily.dev.

**@lucas39** · 0 upvotes

> COBOL is still used today in critical businesses, mainly for its reliability rather than its practicality or development speed, so it makes no sense to incorporate AI into the development cycle. It’s complete nonsense.

## Similar posts on daily.dev

- [AI Wars Ep. 3: The Return of the Developer](https://daily.dev/posts/ai-wars-ep-3-the-return-of-the-developer-vqojhscc5) · marmelab · 48 upvotes · 2 comments
- [Ask HN: COBOL devs, how are AI coding affecting your work?](https://daily.dev/posts/ask-hn-cobol-devs-how-are-ai-coding-affecting-your-work--uk2rkumbt) · Hacker News · 0 upvotes · 0 comments
- [How AI helps break the cost barrier to COBOL modernization](https://daily.dev/posts/how-ai-helps-break-the-cost-barrier-to-cobol-modernization-h7oqac1ou) · Claude · 2 upvotes · 0 comments
- [Researchers Uncover 30\+ Flaws in AI Coding Tools Enabling Data Theft and RCE Attacks](https://daily.dev/posts/researchers-uncover-30-flaws-in-ai-coding-tools-enabling-data-theft-and-rce-attacks-getxq9s6s) · The Hacker News · 1 upvotes · 0 comments

---

Tags: [#github](https://daily.dev/tags/github), [#webassembly](https://daily.dev/tags/webassembly), [#ai-coding](https://daily.dev/tags/ai-coding)

[View this post on daily.dev](https://daily.dev/posts/ai-strikes-back-using-an-llm-to-write-cobol-6d1aer2nw)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"AI Strikes Back: Using an LLM to write COBOL","url":"https://daily.dev/posts/ai-strikes-back-using-an-llm-to-write-cobol-6d1aer2nw","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/ai-strikes-back-using-an-llm-to-write-cobol-6d1aer2nw"},"datePublished":"2026-04-08T16:09:35.291Z","dateModified":"2026-04-08T16:09:58.422Z","description":"A developer used GitHub Copilot to build a browser-based COBOL IDE with zero prior COBOL experience, and it worked impressively well. However, reading the...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ad8ca390157314f7ce8d5e1e635494b2?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ad8ca390157314f7ce8d5e1e635494b2?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"marmelab","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"marmelab","logo":"https://media.daily.dev/image/upload/s--AeMXoaI9--/f_auto/v1716621144/logos/Marmelab","url":"https://daily.dev/sources/Marmelab"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/ai-strikes-back-using-an-llm-to-write-cobol-6d1aer2nw","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":18},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"github,webassembly,ai-coding","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"marmelab","item":"https://daily.dev/sources/Marmelab"},{"@type":"ListItem","position":3,"name":"AI Strikes Back: Using an LLM to write COBOL"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/ai-strikes-back-using-an-llm-to-write-cobol-6d1aer2nw","comment":[{"@type":"Comment","text":"COBOL is still used today in critical businesses, mainly for its reliability rather than its practicality or development speed, so it makes no sense to incorporate AI into the development cycle. It’s complete nonsense.","datePublished":"2026-04-22T14:37:57.951Z","url":"https://daily.dev/posts/6D1Aer2Nw#c-m2vjSncPG","author":{"@type":"Person","name":"Lucas","url":"https://daily.dev/lucas39","image":"https://lh3.googleusercontent.com/a/ACg8ocIIUWuKYGCrhLQ9bRh_zl_uNxcdY4Gvvwc91aTGmSre6nyWEA=s96-c"}}]}
```

