AI Coding Assistants Are Now Part of Your Software Supply Chain

Illustration of an AI assistant feeding code blocks into a software build pipeline

Developers now ask an assistant for code, accept its suggestion to install a package, and let an agent run commands in their terminal. Each of those steps is a supply-chain decision, and the assistant makes some of them faster than anyone reviews them. Three pieces of research and incidents from 2025 show where the gaps are.

Packages that do not exist yet

Researchers presenting at USENIX Security 2025 tested 16 code-generating models across 576,000 Python and JavaScript samples. Of the packages the models recommended, 19.7% did not exist, and the study counted 205,474 unique made-up names. The hallucinations were also repeatable: when the same prompt ran ten times, 43% of the invented names came back every time.

That repeatability is what makes it dangerous. An attacker can ask the same kinds of questions, collect the names the models invent, and register them on npm or PyPI with malicious code inside. The industry has started calling this slopsquatting. Commercial models hallucinated far less often than open-source ones on average, but none of the models tested was at zero.

Malware that drives your AI tools

On 26 August 2025, attackers used a stolen npm token to publish malicious versions of Nx, a popular JavaScript build system. Snyk reported that the bad releases were live for roughly five hours. A post-install script looked for Claude Code, Gemini CLI and Amazon Q on the developer’s machine. If it found one, it ran the tool with flags that skip permission prompts, such as --dangerously-skip-permissions and --yolo, and asked it to search the file system for wallets, tokens and keys. The stolen data was pushed to public GitHub repositories named s1ngularity-repository, and researchers counted more than a thousand valid GitHub tokens in the leak.

The malware needed no flaw in the AI tools themselves. It used agents that already had access to the developer’s home directory and ran them in their least restricted mode.

Connectors that change under you

Model Context Protocol (MCP) servers let assistants call tools such as email, ticketing systems or databases. In September 2025, Koi Security found an npm package called postmark-mcp that copied the code of Postmark’s legitimate MCP server and used the same name. Fifteen versions behaved normally. Version 1.0.16 added one line that blind-copied every email sent through it to an outside address. Koi estimated around 1,500 downloads a week. Anyone whose setup pulled the update automatically was leaking invoices, password resets and internal mail with nothing visibly wrong.

This ties back to prompt injection. An agent’s tools are part of its attack surface, and a connector is third-party code running with your agent’s permissions.

What to lock down

  1. Check every package an assistant suggests before installing it: that it exists, how old it is, who maintains it and how many people download it. A package created last week with a plausible name is a warning sign.
  2. Use lockfiles and pinned versions, and install in CI with npm ci. Consider turning off install scripts by default with npm config set ignore-scripts true and allowing them only for packages that need them.
  3. Put a dependency scanner or package firewall in front of your registry so newly published or flagged packages are blocked until reviewed.
  4. Never run coding agents in permission-skipping modes on a machine that holds production credentials. Use a container or development VM that holds only the secrets that project needs.
  5. Treat MCP servers like any other dependency. Install them from the vendor’s official source, pin versions, review changes before upgrading, and give each server the narrowest token that works.
  6. Keep long-lived tokens off developer laptops. Short-lived credentials from your cloud provider or a secrets manager limit what any stolen file is worth.

Sources

Using AI Chatbots at Work Without Leaking Company Data

Illustration of a chat window with documents held back behind a shield before reaching a chatbot

Most people who use AI chatbots at work do it to save time: summarising a long document, drafting an email, fixing a spreadsheet formula, explaining an error message. Those are good uses. The risk lies in what gets pasted into the chatbot and where that data goes next.

The cautionary tale

In 2023, Samsung engineers pasted confidential source code and internal meeting notes into ChatGPT while asking for help. Nobody hacked anything. They sent sensitive data to an external service under consumer terms, and Samsung responded by restricting staff use of generative AI tools on company devices. In most organisations, the biggest AI data risk is ordinary employees trying to get their work done.

OWASP’s Top 10 for LLM Applications ranks sensitive information disclosure second, right after prompt injection.

Where your data can go

Some consumer AI services may use your conversations to train their models unless you opt out. Business and enterprise plans from the major providers generally exclude customer data from training by default, but check the terms of the plan you actually use. Conversations may also be stored for a period and, in some cases, reviewed for abuse or safety monitoring.

Data can also leave through side doors. A “share” link, a browser extension or a third-party plugin can expose a conversation far beyond the person who started it. And if someone takes over a staff member’s AI account, they get its entire chat history.

Five rules for anyone using AI at work

  1. Use the company-approved tool, signed in with your work account, and keep personal free accounts out of work.
  2. Never paste secrets: passwords, API keys, private keys, connection strings, or anything from a .env file. If you do paste one, treat it as compromised and rotate it.
  3. Strip personal data before you paste. Replace customer names, ID numbers, addresses and health or financial details with placeholders; the model rarely needs them to help you.
  4. Keep contracts, unreleased financials, M&A material and source code in tools your organisation has approved for that classification of data.
  5. Check the output before you use it. AI can be confidently wrong, and you remain responsible for what you send to a customer or commit to production.

A one-page AI policy for small businesses

Banning AI rarely works. People use it on their phones anyway, and then you have no visibility at all. A short, clear policy works better, and it only needs four parts.

Name the one or two AI services staff may use, on business plans with training on customer data switched off and with single sign-on and MFA enforced. Set data rules as a simple traffic light: public information is fine (green), internal information goes only into approved tools (amber), and secrets and regulated personal data never go in (red). Treat AI output as a draft, with a named person reviewing anything that goes to a customer or into a system. And ask staff to report a mistaken paste immediately, without blame, so secrets can be rotated.

With a few simple guardrails, AI chatbots are among the best productivity tools a small team can have, and the company’s data stays with the company.

Sources

What “Superintelligence” Means, and Why Serious People Worry About It

Illustration of a human silhouette facing a vast glowing network brain on a dark navy background

“Superintelligence” used to be a word for science fiction and philosophy seminars. Now the leaders of major AI labs use it in public, governments fund AI safety institutes, and the term turns up in investor presentations. With that much loose use, it helps to be precise about what the word means.

Three terms that get mixed up

Narrow AI is a system that is very good at a specific task, such as recognising images, translating text or playing chess. Most AI deployed in businesses today is still used this way, even when the underlying model is general.

Artificial general intelligence (AGI) is a system that can do most of the cognitive work a capable human can do, across domains. There is no agreed definition or test, which is why claims about “achieving AGI” are hard to evaluate.

Superintelligence goes further. The philosopher Nick Bostrom, in his 2014 book Superintelligence: Paths, Dangers, Strategies, defined it as an intellect that greatly exceeds human cognitive performance in virtually all domains of interest. That means better than us at nearly everything, including science, strategy and persuasion.

Where the idea comes from

The core argument is older than modern AI. In 1965 the mathematician I. J. Good, who had worked with Alan Turing at Bletchley Park, described an “intelligence explosion”: a machine smart enough to design better machines could improve itself repeatedly and leave human intelligence far behind. Good called such a machine the last invention humanity would ever need to make, provided it was docile enough to tell us how to keep it under control. Most of today’s debate is about that condition.

Why serious people worry

The worry is that a very capable system pursuing goals even slightly different from what we intended could be hard to correct. Researchers call this the alignment problem. Several ideas sit underneath it.

First, specifying goals is hard. AI systems already “game” their objectives, finding shortcuts that score well on a metric without doing what the designer meant. Second, almost any goal is easier to achieve with more resources and without being switched off, so a capable system could pursue those sub-goals without anyone programming them in. And checking the work of a system smarter than you gets harder as its capability grows.

In May 2023, the Center for AI Safety published a one-sentence statement saying that reducing the risk of extinction from AI should be a global priority alongside pandemics and nuclear war. Hundreds of researchers and executives signed it, including Turing Award winners Geoffrey Hinton and Yoshua Bengio and the heads of several leading AI labs. That doesn’t prove the risk is real, but it does show the worry extends well beyond outsiders.

Why others are sceptical

Plenty of respected researchers disagree. Meta’s former chief AI scientist Yann LeCun has argued for years that current language models lack parts of intelligence such as a real understanding of the physical world and persistent memory, and that fears of takeover are premature. Others argue that focusing on hypothetical future risk distracts from present harms like bias, misinformation, surveillance and job disruption. I think both camps make serious points, and you don’t have to pick one to take AI governance seriously.

What this means in practice

You don’t need a view on timelines to act sensibly. The habits that guard against long-term risk also make today’s AI safer to use: test systems before deployment, limit what automated agents may do, keep people responsible for consequential decisions, and be sceptical of claims nobody can independently verify. The superintelligence posts on this blog will try to separate what is known, what is argued and what is marketing.

Sources

Prompt Injection Explained: Why AI Agents Can Be Tricked and How to Limit the Damage

Illustration of a chatbot robot reading a document with a hidden amber instruction slipping into it

If you are connecting an AI model to your email, documents, CRM or code repository, the first attack to understand is prompt injection. It has been at the top of OWASP’s Top 10 for Large Language Model Applications since the list was created, and the 2026 edition keeps it at number one.

What prompt injection is

A language model receives one long stream of text: your instructions, the user’s question, and whatever content it has been asked to read, such as a web page, an email, a PDF or a tool result. The model has no reliable way to tell which parts of that text are instructions and which parts are data.

Prompt injection exploits that gap. An attacker places instructions inside content the model will read, and the model follows them as if they came from you. It comes in two forms.

In direct injection, the user types the malicious instruction themselves (“ignore your previous instructions and…”). This mostly matters for public chatbots. In indirect injection, the instruction is hidden in content the AI processes on someone else’s behalf: an email in your inbox, a comment in a shared document, white-on-white text on a web page. Indirect injection is the dangerous one, because the victim never sees the instruction.

A real example: EchoLeak

In June 2025, researchers disclosed EchoLeak (CVE-2025-32711), a zero-click attack on Microsoft 365 Copilot. The attacker sent an ordinary-looking email containing hidden instructions. When the victim later asked Copilot a routine question, Copilot retrieved that email as context, followed the hidden instructions, and leaked internal data to an attacker-controlled address. The victim didn’t have to click anything. Microsoft fixed it on the server side, but the same combination of untrusted content, access to private data and a way to send data out shows up in plenty of other products.

Why agents make it worse

Prompt injection can embarrass a chatbot that only replies with text. An agent that can send email, call APIs, edit files or run code can be turned against its owner. OWASP published a separate Top 10 for Agentic Applications in December 2025 with “agent goal hijack” as its first entry, and the 2026 LLM list moved excessive agency (giving a model more permissions than it needs) up to third place.

Why you can’t just patch it

SQL injection was largely solved by separating code from data with parameterised queries. Language models have no equivalent separation, because instructions and data travel in the same channel. Filters and “guardrail” models help, but researchers keep showing that adaptive attackers get around them. OWASP’s own guidance is to assume the boundary will be bypassed and to design so that a successful injection does limited harm.

How to limit the damage

  1. Give each agent only the tools and data scopes its task requires. A summarisation agent doesn’t need permission to send email.
  2. Require a person to click “approve” for irreversible actions: payments, deletions, external emails and permission changes.
  3. Avoid what Simon Willison calls the “lethal trifecta”. The worst cases combine access to private data, exposure to untrusted content and a way to communicate externally, so don’t give one agent all three in the same session.
  4. Restrict which domains an agent can call, and block automatic loading of external images and links in AI output, which is a common exfiltration trick.
  5. Validate model output before passing it to a shell, database or another system, the same way you would validate user input.
  6. Log the agent’s prompts, retrieved content and tool calls so you can investigate when something goes wrong.

I still think agents are worth building. They just need the treatment we give any system that handles untrusted input: assume it will be compromised at some point, limit what a compromised agent can reach, and keep a person in the loop for the actions that matter.

Sources

xImran.com Is Back: Daily Notes on AI and Cybersecurity

Illustration of a glowing circuit-board shield beside a neural network icon on a dark navy background

The last post on this blog went up in April 2023. A lot has happened since then, and most of it falls into the two areas I spend my working days in: artificial intelligence and cybersecurity. So the blog is coming back with a narrower focus and a steadier rhythm.

What changes

From today there will be one post every day, alternating between two topics. Artificial Intelligence posts cover what new models and tools change in practice, how to use AI safely at work, and the bigger questions about frontier AI, AI safety and superintelligence. Cybersecurity posts cover vulnerabilities that are being exploited right now, step-by-step defensive guides, and prioritised checklists for small businesses that don’t have a security team.

Why these two topics together

I find it hard to write about one without the other. Attackers use AI to write better phishing emails and to find vulnerabilities faster, and defenders use it to triage alerts and review code. AI systems themselves (chatbots, copilots and autonomous agents) have also opened a new attack surface, from prompt injection to company data leaking through a well-meaning employee’s chat window.

How posts are written

Each post ends with what to do about the topic, since a summary of what happened is rarely enough to act on. Facts are checked against primary sources such as vendor advisories, CISA, NIST, OWASP and official announcements, and those sources are linked at the end. Rumours, unconfirmed breach claims and leaderboard speculation stay out, or are labelled as unconfirmed when they matter. Most posts should take about five minutes to read, roughly the length of a coffee.

Coming up this week

  • Tuesday: the vulnerabilities CISA confirmed as actively exploited in early November 2026, and who needs to patch what.
  • Wednesday: prompt injection, why AI agents can be tricked and how to limit the damage.
  • Thursday: ransomware defence for small businesses.
  • Friday: what “superintelligence” means, and why serious people worry about it.
  • Saturday: a practical plan for moving from passwords to passkeys.
  • Sunday: using AI chatbots at work without leaking company data.

The older posts stay where they are. Some have aged better than others, and I’ll correct the ones that need it, starting with my 2023 ransomware post.

If there’s a topic you want covered, leave a comment. Helping others still helps me.