r/codereview • • 27d ago

AI Broke Cybersecurity. Visual Programming Can Fix It.

Post image

AI broke cybersecurity: code is written faster than we can review, detection is blind, and patching is too slow. Visual language Pipe fixes all three—code becomes reviewable by construction, and every block stays observable and patchable at runtime by design.

AI shook the very foundation of cybersecurity. It upended established practices and assumptions. Anyone can now use AI to scan code and find vulnerabilities quickly. What’s even worse, bugs found during one pass of AI code scanning might not be reported after rescanning. This is because of the probabilistic nature of AI – it gives a different response to the same prompt. It means that someone can find a zero-day vulnerability that may not be rediscovered on a later scan, even using the same AI model and identical source code. This could let one person discover and exploit a zero-day that others never see.

Cybersecurity problems are quickly growing in many cybersecurity-related aspects simultaneously. Let’s focus on three of them. They are: (1) AI generates code faster than teams can review it; (2) runtime threat detection is unreliable; and (3) patching is too slow. I will divide the analysis into two stages: development (design-time), and production (runtime).

Problem 1 – Development: code faster than review

A problem AI brought to development impacts cybersecurity indirectly, but it is still a significant threat. AI generates code in huge amounts so fast that development teams cannot review it in a reasonable time. Add to this the pressure on development teams to deliver productivity gains due to AI implementation, and the situation becomes even more dire. Teams have no choice but to skip detailed review, approving PRs automatically. This results in bugs slipping into the codebase and eventually causing crashes and vulnerabilities in production.

The most popular proposed solution is using AI for code review. Essentially, we are going to use AI to review code produced by another AI. There are problems with such a solution due to certain properties of AI itself. The main issue is that AI is bad at handling big context: the longer the task or instructions you give it – the more it hallucinates and the more sharply it degrades on a very large context. I face this problem all the time when trying to ask AI to generate code for even a modest, clearly detailed specification - AI skips, misinterprets and deviates from the specification a lot. The workaround is to have AI generate only scaffolding and continue step-by-step in a tool like Cursor – which proves the point: the model can’t handle the whole codebase. A codebase is a very large context for AI. Are we confident enough to trust AI 100% that the quality of its code review will be comparable to a human’s, even after multiple rounds? Probably not, and this is why human eyes are still needed. It means we are back to square one - dealing with an enormous wall of text code.

Now we will look into the production post-deployment stage. There are two closely related problems there: one is about the reliability of threat detection, and the other – the speed of reaction to an attack.

Problem 2 – Production: detection is blind

Let’s start with detection. The single source of information about what’s happening inside the application is log data. Log statements are pre-placed by developers in source code locations where they think it is necessary. Very often, needed log statements are missing and therefore, any threat detection system (no matter if it is AI-driven or not) can be blind to certain types of attacks. We cannot blame developers for that, because they cannot predict the future. This is the failure of the observability process relying solely on logs to get runtime information about application behavior.

Problem 3 – Production: patching is too slow

Another problem is a reaction to a known attack or vulnerability. The standard process is going back to source code, investigating the problem, changing the code, approving/merging a PR and deploying via CI/CD. The whole process might take days or weeks, even if a new deployment starts fast. The deployment itself might take several days, because often, deployment stages have heavy tests attached that need significant time to complete execution. I worked for companies running complete application tests on every deployment stage to ensure the highest quality of the deployment, but at the heavy cost of the speed. The question is what the production team is going to do while waiting for the fix deployment. They have two choices. One is just waiting, assuming that nobody will exploit the discovered vulnerabilities and data will not be stolen as a result of it. This might be true in the pre-AI era. However, the frequency of AI-driven cyberattacks is growing very fast, and we might not be able to afford to wait today – the risk of losing data is much higher. An alternative is shutting down the whole system or a large independent module while we wait for the fix. However, it will break the continuity of the business. As we can see, both options are bad.

So, we identified three problems – one during development (AI code is generated too fast), and two during production (detection is unreliable and patching is slow). There is a variety of tools and approaches trying to solve these problems. However, their reliability and simplicity are questionable. For example, we can try to disable a certain part of the application using feature flags and tools like LaunchDarkly. However, the whole process of feature flag management is complicated, and it gets exponentially complex as the number of feature flags increases. We need to test many combinations of feature flags during deployment so that we can be confident switching them live on production does not break the application. I worked in companies that used feature flags, and they had a policy to remove a feature flag as soon as it is no longer needed to avoid the complexity of deployment tests.

One solution for all three: visual programming

There is one approach that fixes all three problems at once: visual programming – and I am working on such a solution. This is an unusual combination, but such an approach was proposed before. What’s different this time is a more powerful visual language “Pipe” I designed. This visual language combines two properties not usually seen together in other VPLs: generality and power. Usually, relatively powerful visual languages are domain-specific, while general-purpose languages are pretty simple. I spent 7 years closing this gap and designing a VPL that has both properties together. The reason we need a VPL to be general-purpose and powerful at the same time is that all text-based languages have both properties, and that’s the reason they dominate. Just to have a real opportunity to absorb a part of text code (no visual language can fully replace text code, even Pipe), a VPL must have similar properties to text-based programming languages. Let’s see how Pipe solves the three problems outlined above.

How Pipe solves each problem

The first problem is that it is humanly impossible to review huge amounts of AI-generated code in a reasonable time. This application of VPL is obvious – visual logic is much easier to grasp. VPL does not solve the problem completely, but it mitigates it. As I mentioned before, no VPL is able to fully replace text code, so it will be a mix of visual diagrams and text code. The bigger the proportion of logic moved to visual diagrams from text code, the bigger the benefit of reviewing logic visually is going to be. AI will be generating visual diagrams with some code inside, instead of 100% text code as it does now.

The other two problems (observability and patching) rely on the same property of Pipe – its powerful semantics allows it to keep the visual graph not only during development, but also on production. The reason semantics needs to be powerful enough for this is that otherwise a VPL needs to be translated to a text language to fill missing details in text code, because the VPL itself is not powerful enough to cover it with visual code. So, the deployment chain in this case goes via text, losing the visual graph.

Having a full visual graph on production allows direct access to visual blocks. This has profound consequences both for observability and patching. Observability can be dynamic by tapping monitoring directly into the inputs and outputs of any block at any time right on production, in real time, replacing or complementing log data. Patching also becomes faster because the block can be patched, disabled or rerouted directly, right on production.

A concrete example: a payment-validation block starts leaking customer data. Today a team files a ticket, changes the code, runs the full test-and-deploy cycle, and hopes no one exploits the hole in the meantime. With Pipe, an operator taps that block’s inputs and outputs, confirms the anomaly in real time, and reroutes traffic to a safe fallback block in seconds – while the permanent fix goes through normal CI/CD. The vulnerability is contained immediately; the business keeps running.

Isn’t changing production live dangerous?

I anticipate a very reasonable objection that direct modification of application behavior on production is dangerous and it can cause cascading failures. This is an absolutely legitimate concern. There are two possible solutions.

One solution is separating eventual problem solving and immediate reaction. For example, we can disable a single block or a group of blocks related to just one application feature, not impacting the rest of the application. At the same time, we ask developers to start working on a fix that will go via a normal CI/CD cycle. This way, we do not have to choose between two bad options: shutting down the whole application or assuming nobody will hack the system while a fix is in the works. What Pipe offers is the third option – shutting down or rerouting a vulnerable or dangerous part of the application temporarily, while we wait for a fix. Having such abilities requires a prepared manual giving clear instructions on what to disable in specific situations – developers must prepare such manuals. The good news is that it should not be a burden as AI will be able to help here.

Another solution is building a more sophisticated delivery process with testing right on production, leveraging direct access to blocks to tap the test suite into inputs and outputs, sending testing data to inputs, and analyzing responses from outputs. This process does not necessarily have to fully replace a normal CI/CD deployment – it can complement it to ensure the quality of the direct fix until a new CI/CD deployment arrives.

The key idea of defense against AI-driven cybersecurity attacks is also using AI. However, AI for attack is different from AI for defense. AI for attacks must exploit just one vulnerability – a physical analogy is a sharp, pointy spear. AI for defense must be solid and without holes (a shield), because we do not know beforehand where precisely an attack (a spear) is going to hit. However, AI built on top of existing systems will have lots of holes in the shield, and patching these holes will be slow.

The hot trend today is self-healing engines – an intelligent AI layer on top of the application, detecting attacks and reacting to them automatically. There are two key requirements for such an engine: reliable detection and real-time reaction. However, it is very hard to satisfy these requirements in current systems due to the reasons outlined above: detection is unreliable as the engine can use only fragmented data from logs (shield holes), and reaction is slow as the fix needs to go via the full CI/CD deployment (slow patching of shield holes). What Pipe offers is a solid foundation for such self-healing engines providing reliable detection and fast reaction.

Doesn’t this mean rewriting everything?

The most frequent argument I hear against Pipe is that it requires rewriting existing applications – it is true. However, Pipe only complements text code, mixing visual logic with text. It means that migration does not need to retire the existing codebase immediately. Instead, the migration can be gradual – starting by encompassing the whole application or module in one root Pipe block. Then, whenever ready, moving one step below and distributing text code inside the root block between visual blocks of a second-level workflow, etc. You can stop subdividing blocks at any point, so it's entirely your decision which parts of the system become visual and which remain as text. Pipe provides a complete API for integration with text languages as part of the specification. Also, AI can automate workflow generation, text code distribution between visual blocks, connectivity, and layout of all visual components.

Like everything else in engineering, Pipe has its upsides and downsides. The biggest downside is the need to rewrite existing applications. However, there is also a significant upside – solving three critical cybersecurity issues all together, by the design of the solution. Considering the explosion of AI-driven cybersecurity threats, the current security model might already be outdated and we need to change it. So, weighing upsides against downsides, the upsides definitely win.

Can we create runtime components from text code?

Yes – and it has been tried many times. But every time, managing those components gets complicated: the more you have, the more complex the web of their interactions becomes. The winning combination isn’t just highly granular software in production – it’s also a visual representation that makes all the relationships between them visible. This matters for both observability and patching: the visual graph shows you exactly which components to tap into, and which blocks to patch, disable, or reroute.

Why now

Computers of the 1970s and earlier had only a text-based terminal interface requiring knowledge of specific commands, so the UI was very unfriendly. The GUI revolution brought windows, icons, buttons, and other graphical elements. This made computers much more accessible to users. However, programming did not make this transition, and we still program using text only. AI is the catalyst that finally forces the move to visual programming – not because it’s nice to have, but because we no longer have a choice.

Website: https://pipelang.com

Pipe IDE URL: https://www.pipelang.com/pipe/v1/

Tutorials:

  1. Data Swap – https://www.pipelang.com/assets/tutorials/v1/tutorial1.mp4
  2. Reusable Sum – https://www.pipelang.com/assets/tutorials/v1/tutorial2.mp4
0 Upvotes

37 comments sorted by

7

u/Useful-Flow-8737 27d ago

did ai also hack this idea together?

3

u/Jazzlike_Place_1974 23d ago

yeah the formatting and those headers are a dead giveaway

-2

u/PurpleDragon99 27d ago

I spent 7 years studying the problem, designing a new VPL and eventually publishing a book with full language specification in 2025. There was no AI in 2018 and it was not so sophsticated even in 2025. Also, I doubt AI is capable to design a novel language from scratch even today - you can try.

7

u/Ok_Carrot_896 27d ago

You spent 7 years studying a problem that's only existed for the last two?

1

u/PurpleDragon99 27d ago edited 27d ago

Originally, the goal was just implementation of new VPL. Then AI came and it happened that Pipe can help solve three critical cyberproblems.

Yes, it was accidental to some extent, but it shows me how powerful visual programming can be in solving problem. I am sure these 3 cybersecurity problems is just a start where VPL can perfectly solve multiple problems at once.

2

u/Enoikay 22d ago

> There was no AI in 2018

That’s just not true.

1

u/PurpleDragon99 22d ago

Fair. Let me be more specific - there was no AI in 2018 that could write articles like it does today.

5

u/aidencoder 27d ago

TL;DR: slop

1

u/PurpleDragon99 27d ago

You can download the book from website for free: https://www.pipelang.com/downloads/book.pdf and look inside. The language is not perfect (I am not a professional writer), but it is all my writing - AI does not write like that.

3

u/aidencoder 27d ago

I think the issue is the wall of text full of idioms and rambling that make no sense and lots of magic bullet statements. Nowhere do you say how it meets your claims about security. Instant red flag. 

5

u/egoserpentis 22d ago

Going back to Scratch with this one

1

u/PurpleDragon99 22d ago

Pipe is a significantly more powerful VPL than Scratch

4

u/TemperOfficial 27d ago

Makes no sense. If visual programming languages were so much better for comprehending logic then they would have taken off years ago. Not that any of that matters because this just an AI slop post.

1

u/Sixhaunt 22d ago

Developers HATE visual languages and they are just so slow and inefficient to work with. I think OP asked GPT to come up with an idea and OP isn't experienced enough to understand why the idea is bad

0

u/PurpleDragon99 27d ago

The problem of visual programming is not that idea itself is flawed, but that a good visual language did not exist. That's why I spent 7 years studying the problem, designing a new VPL and eventually publishing a book with full language specification in 2025. There was no AI in 2018 and it was not so sophsticated even in 2025. Also, I doubt AI is capable to design a novel language from scratch even today - you can try. So, it cannot be AI slop.

You can download the book from website for free: https://www.pipelang.com/downloads/book.pdf and look inside. The language is not perfect (I am not a professional writer), but it is all my writing - AI does not write like that.

Generally, if some idea failed - it does not mean we need to stop trying. Most of modern technologies went through multiple cycles of failures until lessons are learned and technology eventually succeeds. The same story with Pipe - I tried to learn lessons from previous VPL failures.

2

u/TemperOfficial 27d ago

There are quite a few good visual programming languages that have existed way before 2018. I dont get it.

1

u/PurpleDragon99 27d ago

There are many visual languages existing for decades. However, all powerful ones (like LabVIEW) are domain-specific, and general-purpose (Luna, Scratch) are very simple. The challenge was creating VPL which is both general-purpose and powerful. We need both because these are properties of all text-based and this is the reason they dominate. Just to rival text coding, VPL must have both generality and power.

2

u/TemperOfficial 27d ago

But why would i use pipe when I could just visualise my existing code? Especially now with AI. I can ask it to generate a visual diagram of my text code without switching languages.

1

u/PurpleDragon99 27d ago

You can, but this is a one-way street. You have visual representation separately from code, and AI needs to regenerate visual representation after each code change. Developers need to jump between code and visual.

Pipe offers both visual reprentation and executable artefact together. This is a complete visual language, not just some non-executable notation like UML.

Also, keep in mind that AI hallucinates and the bigger the context - the more it hallucinates. This is unsolved problem. So, every time you ask AI to visualize something - it will be skipping or misinterpeting details. This is why VPL matters - it just exists, not generated with errors.

2

u/schneeble_schnobble 22d ago

This is why you pay for an Ad. You defending it personally and trying to win over critics doesn't look good. Not to say there's anything wrong with your project or book or anything. Reddit ads recommend you disable comments on the ad for this very reason. This kind of customer engagement is a net negative.

1

u/PurpleDragon99 22d ago

I do Ads too, but I still enable comments even there. I am not trying to win over critics (even though it would be great). I treat this as honest and open discussion. No matter if negative or positive - I am thankful for any comment, feedback, suggestion or advice.

3

u/Sixhaunt 22d ago

The biggest issue with visual languages is anyone above beginner level developer will avoid it like the plague

0

u/PurpleDragon99 22d ago

Q: We tried visual programming before, and it didn't work. Why would it work this time?

A: Every technology advances in a spiral — it fails several times before its lessons are learned and it finally succeeds. Pipe was built by studying exactly why earlier visual languages fell short. Two lessons in particular shaped it:

  • A visual language must be both general-purpose and semantically powerful to compete with text. Text-based languages dominate precisely because they have both qualities; any visual language that lacks either will fail. Pipe has both.
  • The answer isn't to swing between extremes. We tried pure visual programming, it didn't work, so we went back to text-only — which has its own problems, now made obvious by AI. Good engineering doesn't jump between extremes; it finds a synthesis that keeps the strengths of each while minimizing their weaknesses. That's Pipe's core philosophy: it doesn't replace text-based languages — it complements them. In practice, that means the developer decides what goes into visual diagrams and what stays as text.

2

u/Sixhaunt 22d ago

okay so how does your visual language solve it? how does your visual language work at the speed of a keyboard without needing you to do something very awful like drag and dropping something?

1

u/PurpleDragon99 22d ago

Q: Do we need to rewrite our existing system in Pipe?

A: To some extent, yes — but the transition is far less disruptive than it sounds:

  • The migration is gradual — you don't have to discard all existing code at once. You start by wrapping your entire project in a single top-level block. That's the initial step. Then, whenever you're ready, you add a workflow inside that top-level block and distribute the code across the visual blocks of the newly created workflow — and you can keep going, level by level.
  • You choose how far to go. You can stop subdividing blocks at any point, so it's entirely your decision which parts of the system become visual and which remain as text.
  • Pipe makes integration easy. It provides a simple bridge for connecting visual blocks to your existing text code.
  • AI reduces the overhead of going visual. AI can generate diagram layouts from your existing code, update them as the code changes, suggest how to partition logic across blocks, and flag structural issues as your model grows. AI will significantly decrease the need to do manual drag-and-drop.

2

u/Sixhaunt 22d ago

Can you provide any examples? both of your video examples/tutorials only show the worst possible workflow with people using a UI that would take them 10X as long to setup a function than in any other language while being in state that is far tougher to develop off of than standard code

1

u/PurpleDragon99 22d ago edited 22d ago

I am not sure what examples you are talking about. Book with full spec, Pipe language summary, mutlple video examples, Pipe IDE you can try without signup - all these materials are available on website.

2

u/Sixhaunt 22d ago

the last 2 lines of your post are links to tutorials where it only shows a really time-consuming UI workflow rather than showing how you can build things in a reasonable amount of time. Even when I go to the page I'm struggling to find where to get out of the annoying and slow drag and drop stuff to the useful stuff where I dont need to use my mouse for everything.

1

u/PurpleDragon99 22d ago

This is tutorials based on a pilot version of Pipe IDE available on website that implements a subset of all planned features. AI layout is not included in pilot, so the only available option is drag-and-drop. Full product is in the works.

1

u/PurpleDragon99 22d ago

I am happy to meet if you are interested in more details

3

u/_DCtheTall_ 22d ago

GUI graph-based programming will always be inferior in expressivity to text-based languages. Hard pass.

Imagine a large open source project the scale of PyTorch or Kubernetes in graphical programming interface... Ew...

-1

u/PurpleDragon99 22d ago

Q: We tried visual programming before, and it didn't work. Why would it work this time?

A: Every technology advances in a spiral — it fails several times before its lessons are learned and it finally succeeds. Pipe was built by studying exactly why earlier visual languages fell short. Two lessons in particular shaped it:

  • A visual language must be both general-purpose and semantically powerful to compete with text. Text-based languages dominate precisely because they have both qualities; any visual language that lacks either will fail. Pipe has both.
  • The answer isn't to swing between extremes. We tried pure visual programming, it didn't work, so we went back to text-only — which has its own problems, now made obvious by AI. Good engineering doesn't jump between extremes; it finds a synthesis that keeps the strengths of each while minimizing their weaknesses. That's Pipe's core philosophy: it doesn't replace text-based languages — it complements them. In practice, that means the developer decides what goes into visual diagrams and what stays as text.

2

u/_DCtheTall_ 21d ago

AI slop response. If you don't put in effort to type it I am not putting in effort to read it.

1

u/PurpleDragon99 21d ago

I copied answer from a section "Frequently Asked Questions" of the website - https://pipelang.com. There is no point to retype again what's already been answered. You can find answers to other questions there. If you ask something beyond of what's provided in that section - I am happy to engage by typing manually, as I do right now.

1

u/twisty_lynx 23d ago

pfft just tell the LLM to fix the bugs and security issues, don't forget to add "make no mistakes" /s

1

u/Aureon 23d ago

respectfully, what the fuck are you on about

1

u/silentkode26 23d ago

I cannot imagine why would someone even read this.