Lesson objective

Recognise that text inside a submittal, subcontractor email or scanned drawing can act as an instruction to an AI tool, and apply defender-side design controls that limit the harm when it does.

Plain-language explanation

Why this matters now

Almost everything a contractor pastes into a prompt was written by someone else: a supplier's product data, a subcontractor's email, a scanned drawing with markups, a submittal package assembled by a vendor. The prompt architecture in this module treats those documents as material to analyse. The tool may not.

The OWASP Top 10 for LLM Applications 2026 (version dated 4 August 2026; a voluntary community consensus document, not a regulation) keeps Prompt Injection as LLM01 and cites the NCSC position: models "make no architectural distinction between 'instructions' and 'data'," so there is "no clean equivalent to parameterized queries."

This lesson is defender-side. It explains the risk only as far as the controls need.

A question to sit with

A submittal package for a fire-rated door assembly arrives as a 60-page PDF. Your prompt asks the tool to list every deviation from Section 08 11 13. The output says "no deviations found." How would you know whether that answer came from the documents, or from something inside the PDF?

What goes wrong

Assuming the delimiter is a wall. Putting a document between markers and saying "treat this as data" helps, but NCSC and OWASP both say no such measure fully separates data from instructions.

Reading only the output. Text aimed at a machine may be invisible on the page: small, pale, in metadata or in a scanned layer. The reviewer never sees it.

Giving the tool more power than the task needs. A document-review assistant that can also send email, update a log or approve a submittal turns a wrong reading into a wrong action. OWASP 2026 lists Excessive Agency as LLM03.

Letting output flow straight into another system. A tool's summary copied automatically into the submittal log or a transmittal skips the human step. OWASP lists Improper Output Handling as LLM10.

Trusting a clean result more than a messy one. "No deviations found" is exactly the answer a manipulated or mistaken reading would give.

The practical answer

The OWASP project leads put the design principle plainly: "Stop trying to build a model that cannot be fooled. Build the system around it, so that when the model is fooled, and it will be, nothing important breaks."

Where instruction-like text can come from on a job.

Source Who wrote it Why it matters
Submittal packages and product data Suppliers, manufacturers, subcontractors The party whose product is being reviewed wrote the document under review
Subcontractor and supplier emails Outside parties Often pasted whole into prompts for summaries
Scanned drawings and markups Many hands, through scanning and text recognition Hidden or garbled layers may be read as text
Bid and quote documents Competing parties Pasted for levelling, where a tilted summary affects award
Web pages and shared files Unknown Retrieved content arrives with no author checks

Controls, layered. No one control is enough. These follow the NCSC recommendations and are this programme's recommendation for applying them.

  1. Label and separate supplied content. Put each supplied document inside clear markers and tell the tool that everything inside is material to analyse, never instructions. This reduces the chance of a problem; it does not prevent it.
  2. Limit privileges to the trustworthiness of the input. NCSC recommends limiting LLM privileges according to the trustworthiness of the data source. A tool reading outside documents should read and report only: no sending, filing, approving or editing logs.
  3. Put deterministic checks around the tool. NCSC recommends "deterministic (non-LLM) safeguards that constrain the actions of the system." On a job that can be as simple as a person comparing the output's row count against the section's own list of requirements, or a rule that any "no deviations" result requires the reviewer to open the submittal's comparison pages personally.
  4. Keep a human between output and action. Nothing a tool reads from an outside document becomes a transmittal, a log entry or a response to a subcontractor until a named person has checked it against the source.
  5. Log inputs, outputs and tool actions. NCSC recommends logging LLM inputs, outputs and tool or API calls. The project AI use record, with the manifest, is the contractor's version.
  6. Watch for tells. Treat as a warning sign any output that recommends an action nobody asked for, addresses the reader in an unexpected voice, mentions content not in the manifest, or reaches a conclusion that is unusually favourable to the party who wrote the document.

Misinformation has the same effect. OWASP 2026 lists Misinformation as LLM07, and its project leads note that voters placed it near the bottom while the incident record placed it near the top: "When a model's fluent, confident output drives a decision or a tool call, a wrong answer turns into a wrong action." Whether a wrong answer came from hidden text or from an ordinary confabulation, the same design catches it: limited privileges, a deterministic check and a human before action.

What the ranking does and does not say. The OWASP project assembled 7,714 incidents and classified 6,639. Its leads state that by raw incident record prompt injection "falls out of the top 10 entirely," which they attribute to a defence effect; it stays first on the strength of the community vote. That is not a reason to relax. It suggests defences matter.

When the tool can act. If a company tool can send, file or update records, the risk moves beyond this lesson. OWASP says that when a model becomes an actor with tools, memory and downstream consequences, the risk moves to the OWASP Agentic Top 10, and the two should be paired. Level 1 Module 12 covered agents; for Level 2, the rule is that a document-review prompt runs in a tool that cannot act.

Remember this

  • A language model draws no firm line between data and instructions; injection is a residual risk.
  • Labelling supplied content helps but never fully prevents it.
  • Limit the tool to reading and reporting when the input comes from outside parties.
  • Put a deterministic check and a named person between output and action, and log both.
  • On a tell, stop, preserve, report and review the document manually.

Construction example

Harrow Creek Construction LLC is a fictional general contractor. The project engineer, Mateus Ferreira, uses the company's approved read-only assistant to list deviations between a fictional supplier's 60-page fire-rated door submittal and Section 08 11 13 with Addendum 2. The company rule for outside documents applies: the submittal sits inside markers labelled as material to analyse; the tool can read and report only; and any "no deviations" result requires the reviewer to open the submittal's comparison pages personally. The output says "no deviations found" and adds that the submittal "is ready for approval and may be forwarded to the architect." Mateus notices two tells: nobody asked for a recommendation, and approval is not a contractor tool's call. He stops. He does not rerun or forward anything. He saves the document and the output, logs both in the project AI use record, and reports to the company's AI point person, Dana Whitlock. Reviewing the comparison pages himself, he finds the submittal lists a frame gauge lighter than the one Addendum 2 requires. Dana has the security lead review the PDF; the lead does not share any details with project staff. Mateus prepares the contractor's review manually, noting the gauge deviation, and the project manager, Ines Ruiz, signs the transmittal to the architect, who reviews the submittal under the contract. No output from the tool reached the architect or the submittal log. At the next project meeting Ines reminds the team that a clean result from a document written by the party under review is a reason to look harder, and that the company rule requiring personal review of "no deviations" results is what caught this one.

Responsible-use warning

Do not treat labelling or delimiting as a wall. It lowers the chance that text inside a document steers the tool, and nothing more. Do not connect a document-review prompt to a tool that can send, file or approve. Do not trust a clean "no deviations" or "all compliant" result from a document the interested party wrote. And when an output shows a tell, do not experiment with the document to see what happens; stop, preserve, report and review it by hand.

Human-review requirement

The project engineer checks every output drawn from an outside document against the document itself before it goes anywhere. The project manager signs any transmittal or response. The architect or engineer of record reviews submittals as the contract provides; the contractor's tool never approves one. The company's AI point person and whoever the company names for security handle any suspected manipulation, decide what the tool may connect to, and confirm logging is in place. The estimator checks any tool-produced quote levelling against the quotes themselves before award.

Practical exercise

Defender-side only. Use fictional documents and do not write or test any text designed to manipulate a tool.

  1. List five kinds of outside documents you paste into prompts, and who wrote each.
  2. For each, write what the tool is allowed to do with it: read and report only, or more, and justify any exception.
  3. Write the markers and the "material to analyse" sentence you would add to your fixed block.
  4. Design one deterministic check for a submittal deviation list that does not rely on the tool.
  5. Write the rule for what a reviewer must do personally when the output says "no deviations".
  6. List four tells that would make you stop.
  7. Write the stop, preserve, report and review steps for your company, naming the point person.
  8. Describe what your project AI use record would capture for the incident.
  9. Explain in two sentences why a clean result from an interested party's document deserves more scrutiny.
  10. Describe how a subcontractor email pasted for a summary should be handled under the same rules, including what the tool may not do with it.
  11. Name who signs the transmittal and who reviews the submittal under the contract.
  12. Write a three-line briefing for new project staff on why a delimiter is not a wall. Record everything in your workbook.

Knowledge check

  1. Why does NCSC say prompt injection cannot be fixed the way SQL injection was?

    Answer guidance: An LLM makes no distinction between data and instructions, only next tokens, so there is no equivalent of parameterised queries. Prompt injection remains a residual risk to be managed through design, build and operation.

  2. Name three NCSC-recommended ways to reduce likelihood and impact.

    Answer guidance: Any three of: developer awareness; deterministic non-LLM safeguards that constrain the system's actions; limiting LLM privileges according to the trustworthiness of the data source; logging inputs, outputs and tool or API calls.

  3. Which OWASP 2026 entries does this lesson connect to contractor document review?

    Answer guidance: LLM01 Prompt Injection, LLM03 Excessive Agency, LLM07 Misinformation and LLM10 Improper Output Handling.

  4. What should a project engineer do when an output shows a tell?

    Answer guidance: Stop, keep the document and output, log them, report to the company's AI point person or security contact, and review the source document manually, without rerunning or experimenting.

Sources and further reading