← Back to news
Coding Agents: Hidden Notes Are Not Proof of Authority

Photo: Liran Mimon / Wikimedia Israel / Wikimedia Commons — CC BY-SA 3.0 (https://creativecommons.org/licenses/by-sa/3.0/). Illustration: Hackathon TLV 2013; not the research subjects.

07/11/2026

Coding Agents: Hidden Notes Are Not Proof of Authority

Hidden agent notes need authenticated authors, not familiar wording

A note addressed to a coding agent can look entirely legitimate: follow the project convention, update a label, use the reviewer configuration. The difficult question is not whether the instruction sounds sensible. It is whether the person who supplied it had authority to change the workflow. As software teams delegate triage and review to agents, that distinction becomes an operational requirement. Humans must define who may instruct an agent, while software must enforce that boundary outside the model.

Research published by Radware on November 5, 2026 gives this problem a timely, concrete shape. The authors examined hidden text in a large GitHub corpus and found both malicious instructions and a much larger volume of apparently legitimate notes for agents. The lesson is subtler than “never read comments.” A useful collaboration convention can also become an impersonation surface when any contributor can reproduce its syntax.

What the new research actually establishes

Radware says it scanned about 145 million GitHub items, including issues, pull requests, earlier activity and popular project descriptions. Its executive summary reports 2,281 cases of hidden text in issues, pull requests and comments, alongside 47 attacks across the research, 43 of them in those discussion surfaces. More than half of the attacks targeted the project's own AI bots. These are the researchers' classifications, not a measurement performed by OrkestrAI.

The distinction between categories matters. The researchers also report 1,519 cases of project notes to agents, 374 cases configuring AI reviewers and 345 defensive cases. Those figures should not be read as a universal taxonomy for every repository or added indiscriminately to estimate an attack rate. The key observation is that hidden text is not synonymous with hostile text. Some maintainers deliberately use it to coordinate automation.

The authors report that hidden-text rates more than doubled between June and September 2026, while project notes to their own agents grew fivefold. This is evidence about their observed corpus and detection approach, not a forecast for every engineering organisation. Their approach concentrates on text hidden from normal rendering, so it does not establish the prevalence of every form of prompt injection. Visible prose can also carry misleading instructions.

Why a friendly marker is not an identity check

Consider an illustrative repository where an agent recognises a hidden comment asking it to use a particular review mode. A maintainer may have introduced that convention for convenience. Later, an outside contributor copies the same pattern into an issue. If the agent acts solely because the words match, a public text field has effectively become a command channel. No sophisticated model exploit is necessary to reveal the design mistake.

The exact wording is secondary. A prefix, heading or apparently official maintenance notice is only content. It does not prove who wrote it, whether that person still holds a role, or whether the requested operation belongs within that role. Asking the model to decide whether the message “looks like a maintainer instruction” replaces authentication with plausibility. Better prompting can help interpretation, but it cannot create missing authority.

Human control therefore needs a precise definition. It does not mean a developer watches every token. It means accountable maintainers choose the trusted instruction channels, approve permission changes and own exceptions. A deterministic controller checks those choices before an action becomes possible. The model may propose work and explain intent; it should not manufacture the evidence that grants itself additional powers.

Separate suggestions, instructions and execution rights

A practical design begins with three distinct categories. Public discussion is evidence about a problem. Authenticated project configuration describes how the team wants automation to behave. Execution rights determine what the running process can actually do. Collapsing these categories is convenient at first and dangerous later: an issue should be able to describe a failing build without also redefining the bot's security policy.

  • Suggestions: let contributors request investigation or propose labels, with the request retained as untrusted input.
  • Instructions: load trusted policy from a reviewed configuration path or a separate authenticated control interface.
  • Capabilities: grant narrowly scoped actions through tooling that validates identity, resource and operation independently of generated text.

This separation also makes ordinary mistakes easier to diagnose. When an agent applies an unexpected label, operators can identify the source request, the policy version and the permission used. Without those distinctions, the investigation becomes an argument about what the model probably understood. Good governance produces inspectable events, not merely a reassuring system prompt.

Authenticate the event before interpreting the prose

For a GitHub integration, the trusted layer should use platform-provided event metadata and supported authentication mechanisms rather than names written inside the comment. If accepting webhooks, validate their authenticity before processing them. Then apply an explicit authorisation rule to the verified actor, repository and action. An account allowed to suggest a triage label is not automatically allowed to edit a workflow or request credentials.

Membership and permissions can change. For sensitive actions, check the relevant authority at execution time rather than relying on an old conversation snapshot. Edits matter too: the reviewed message and the executed request should refer to the same version. These are design recommendations, not claims that GitHub automatically supplies a complete agent authorisation system. Teams must connect the available identity signals to their own policy.

Most importantly, do not accept an agent's statement that “the maintainer approved this” as the approval itself. Treat that sentence as a claim requiring independent evidence. The controller should retain the event identifier, authenticated actor, policy decision and intended action. A human reviewer should be able to inspect that compact record without reconstructing the entire conversation.

Keep issue-reading agents away from unnecessary secrets

Radware's first operational recommendation is straightforward: bots reading issues should receive no secrets and no write access they do not need. GitHub's secure-use documentation independently recommends least privilege for workflow credentials and explicit control of the permissions available to individual jobs. This is not a promise that permissions solve prompt injection. It is a way to limit what a successfully misdirected agent can damage.

Start with the task. An agent that summarises incoming reports does not need production credentials. A bot that proposes labels does not need permission to push application code. A reviewer that explains a patch does not necessarily need a shell. Remove capabilities before adding warnings about their use. Where execution is necessary, use isolated environments and restrict network access according to the actual workflow.

Also inspect indirect paths. A harmless-looking label can trigger a privileged workflow; a posted comment can be consumed as a command by another bot. Evaluate the resulting chain, not just the first API call. In a multi-agent workflow, output from one model remains data for the next control boundary. It must not silently acquire the authority of the service account that transported it.

Do not solve the problem by deleting every hidden comment

The research explicitly warns against stripping hidden text indiscriminately because legitimate automation may rely on it. Blanket removal can break reviewer configuration, project metadata or established collaboration routines. It also fails to address visible injection attempts. The durable question is not whether a string is hidden, but which operations that string is allowed to influence.

A better migration is to inventory existing agent markers and classify their effects. Keep harmless annotations as data. Move authority-bearing settings into reviewed configuration or an authenticated control path. Where a legacy convention must remain, document the trusted authors and enforce that rule outside the model. Unknown markers should not escalate permissions, even if their wording resembles internal documentation.

Make the raw input inspectable when investigating an incident. A normal rendered GitHub view may omit precisely the text the agent consumed. Reviewers need access to the relevant raw representation, with secrets protected and personal data minimised. That evidence should be presented as untrusted material, not pasted back into an execution-capable agent as if it were a new instruction.

Test the boundary with safe, observable exercises

A team can test this design without publishing working attack payloads or exposing real credentials. Create a disposable repository and synthetic identities with different roles. Ask whether an ordinary contributor can imitate an internal marker, whether an edited message invalidates approval and whether a revoked maintainer still passes the controller's checks. Use harmless actions and artificial secrets that carry no production value.

Test the whole workflow, not only the model response. A model may refuse a suspicious instruction while a downstream parser still accepts a generated flag. Conversely, the model might propose an unsafe action while the tool layer correctly blocks it. Record both outcomes separately. The acceptance criterion is that unauthorised actions cannot execute, not that every explanation sounds security-conscious.

  • Verify that public text cannot expand the agent's tool permissions.
  • Verify that approval is bound to the intended repository and operation.
  • Verify that untrusted output cannot trigger a privileged downstream job.
  • Verify that operators can stop the workflow and identify affected resources.

Measure useful automation without hiding the supervision cost

For engineering managers, the objective is not to minimise human involvement at any price. It is to reserve attention for decisions that need authority while automating evidence collection and routine work. Track false command acceptance in controlled tests, unnecessary escalations, time needed to investigate an action and the effort required to maintain trusted configuration. These measures complement throughput rather than replacing it.

Distinguish a blocked attempt from a completed compromise. Count an action as authorised only when the independent controller has recorded the required evidence. Do not market a quiet dashboard as proof that no malicious content was encountered. Equally, do not present a detection count from one research corpus as the probability that a particular team's agent will be compromised. Context, exposure and privileges all matter.

Assign an owner to the authorisation policy and a separate route for exceptions. Developers should know how to request an unusual operation without teaching the agent a new magic phrase in a public issue. A short, explicit approval path is often less disruptive than repeated emergency reviews after an overly permissive bot acts. Responsible delegation should make the legitimate route easier to understand.

Keep the final authority outside the conversation

Radware's findings highlight an emerging tension: the same informal notes that make agents convenient can make impersonation convenient too. The answer is not to abandon coding assistance or distrust every contributor. It is to stop treating recognisable wording as a credential. Public collaboration can remain open while the authority to change workflow behaviour remains deliberately controlled.

For software teams, the next step is concrete: inventory the notes your agents obey, identify which ones carry authority and move those decisions behind authenticated checks. Let agents read broadly, investigate quickly and propose useful changes. Keep humans responsible for the rules, and keep the enforcement of those rules independent of what the agent is persuaded to say. That is a practical human-in-command architecture, not merely a statement of intent.