Security Data Works

AI attack surface · Part 2

Rent or own: sizing your AI attack surface to the team you have

In a run in my lab on 9 November, the same 1.1-billion-parameter TinyLlama weights went in front of a set of inventory scanners twice, once as a GGUF file with the model's name in the filename and once inside Ollama's content-addressed model store, which is how the weights actually sit on a host that runs Ollama. Syft 1.55.0 found the named file and typed it as a model, with the version unknown and no package URL, and the AI-specific scanner ai-bom 3.6.0 found it too under a made-up PyPI identifier, but none of Syft, Trivy 0.76.0 in either scan mode or ai-bom saw the same weights once they were in Ollama's store, in any of three runs. That result is about inventory tooling, but I think it also shows in miniature what owning an AI surface involves, because the model on that host belongs to the organization whether the team chose to run the host or a developer chose for it, so knowing it is there is the organization's job, and Syft and Trivy, tools a team may already run for software inventory, did not do that job once the weights were in the store.

Thirteen ways AI gets deployed, on one map placed the thirteen common deployment surfaces on CoSAI's 42-component risk map and marked who operates each part, and the pattern it found is that an organization runs nearly every component it instantiates on three surfaces (self-hosted model serving, fine-tuning pipelines and RAG stores), the agent and tool layer on three more, and on the remaining seven a security team holds at most the identity provider, an enforcement point of its own and an audit log, which on most of them is whatever the vendor exports. Read as a cost sheet, that grid poses a question that I think comes before any tool purchase, which is how much of the surface a given team should own at all.

Reading time: about 10 minutes. Evidence tier: D for the rent-or-own view, which is my practitioner perspective rather than a finding, and for the ownership table; B for vendor and project documentation of what a feature does; A for the one peer-reviewed software-engineering result; first-party lab measurement for the two runs cited, both agent-run and each re-checked by a second agent.

A bar chart titled You run 2 components of an assistant you rent, and 10 of a model you host. Components the organization operates, by surface. Rented: enterprise assistant 2, highlighted, plus 7 shared; managed build platform 6 plus 7 shared; direct API and gateway 4. Owned: self-hosted serving 10, fine-tuning pipeline 10, RAG and vector store 9.
Operated components per surface from the series' ownership table (Tier D). The shared components on the rented surfaces are ones you configure while the vendor runs them, and once they count, every surface names four to six teams; the table below has those counts and who holds the audit record.

The cost side

What owning a surface costs

Owning a component means owning its patching, its logging, its identity and its detection, and the table below tries to make that cost more concrete by counting, for six of the thirteen surfaces, how many components the organization operates outright, how many it shares with a vendor (configuring or feeding something the vendor runs), and how many distinct teams the series' ownership table names on those rows. The three rented surfaces at the top are the ones a small or mid-sized organization is most likely to choose first, and the three owned surfaces at the bottom are the ones where the organization runs nearly everything, model included on the first two.

SurfaceOperated by the organizationShared (you configure, the vendor runs)Teams named on those rowsIdentity providerNetwork enforcement pointAudit record
S2 Enterprise assistants275operatednot listedvendor's export
S7 Managed AI build platforms676operatedoperatedoperated
S8 Direct model API and gateways404operatedoperated (the gateway)operated
S9 Self-hosted model serving1005operatednot listedoperated
S11 Fine-tuning pipelines10, plus a registry that may be a vendor's04operatednot listednot listed
S12 RAG pipelines and vector stores9, around an embedding model that is usually rented05operatednot listedoperated

Counts come from the per-component ownership table behind article 1's grid, read row by row; vendor-run components make up the rest (two on S2 and S7, one on S8). "Teams named" is the number of distinct team names in that table's owner column on the operated and shared rows, after folding synonyms the same way on every surface (ML platform and ML engineering count as one ML team, data engineering and data platform as one data platform team, and vendor entries are dropped), so it counts groups that have to cooperate and says nothing about headcount, and a different fold would move these counts by one or two. "Not listed" means the table has no such component on that surface, which may mean it is absent or that nobody wrote it down. Tier D throughout.

The team count does not separate the two halves of the table once the shared rows are counted, since every surface here names four to six groups and the managed build platform names more than any owned surface. What does separate them is the kind of work. On S2 and S7 much of what the organization touches is shared, seven components on each that it configures while the vendor runs them, such as an assistant's connectors, retention settings, custom-agent instructions and OAuth consent, whereas on S9, S11 and S12 nothing is shared and nearly everything is operated, which means patched, logged and watched by the teams the table names. So in this reading the coordination cost is roughly the same whichever way a team goes, and what owning adds is the operating work on top of it.

The result in the opening is the inventory part of that operating work, since Syft and Trivy did not see a model once Ollama had pulled it into its own store, though Syft did type the same weights as a named file and a safetensors directory in the same run. The logging part looks much the same: current vLLM, one of the common engines for self-hosted serving, ships with request logging off, and when an operator turns it on with --enable-log-requests it records request IDs and parameters at INFO and adds the prompt text only at DEBUG, so an owned serving tier produces no record of what it was asked until someone on the team decides it should, picks a log level that will hold prompts, and then decides where those records go and who reads them.

Same weights, two layouts: none of the three scanners saw them in Ollama’s store
ScannerAs a named GGUF fileInside Ollama’s store
Syft 1.55.0found, typed as a model, no package URLmissed
Trivy 0.76.0not found (either scan mode)missed
ai-bom 3.6.0found, under a made-up PyPI identifiermissed

TinyLlama’s 1.1-billion-parameter weights, lab run of 9 November; the store column held in each of three runs, and Ollama’s content-addressed store is how the weights actually sit on a host that runs it. The opening's inventory run as a table: the layout a host running Ollama actually uses is the one none of the three scanners saw. Trivy's miss on the named file is from the same run's results table. SDW Lab run R4, one host, Ollama 0.20.6, three runs with identical results (first-party, agent-run and re-checked by a second agent).

The last part of the cost is the clock, and here renting and owning differ less than the framing suggests, because the frameworks, protocols and defaults that a team's mappings and detections key on keep moving whoever runs the model. MITRE ATLAS shipped six versioned releases between late May and the end of October 2026, v2026.05 to v2026.10, and across the releases from June to October it dropped eight technique IDs, three in v2026.07 and five in v2026.10, without marking any of them deprecated; the Model Context Protocol's 2026-07-28 revision deprecated its own logging feature and moved the record to stderr and OpenTelemetry; and platform logging defaults change by release note on rented and owned surfaces alike. What owning adds is the serving engine's and the pipeline's own release notes, and vLLM is a small example, since its request-logging default was the other way round until a change merged in August 2025, so a bare vllm serve on a version pinned before that change and the same command on a current release log requests differently.

A self-hosted vLLM tier records prompts only if someone asks twice
SettingWhat current vLLM writes about a request
Default, vllm serveRequest logging off: no record of what it was asked
Switch 1, --enable-log-requestsLogged at INFO: request IDs and parameters
Switch 2, log level set to DEBUGAdds the prompt text

Before the change merged in August 2025 the default was the other way round, so a pinned version logs requests differently, and someone still decides where the records go and who reads them. The logging part of owning a serving tier: two deliberate choices stand between a default vLLM and a record of prompts. From vLLM source read 16 November 2026 and the change merged in August 2025 (Tier B for what the code does).

The rented side

What renting moves, and what it leaves you

Renting a surface moves most of that operating work to the vendor, which is a real benefit, and it also moves the risk into the vendor's controls and the record into whatever the vendor chooses to log, so I'd describe a team that rents a surface as choosing which visibility gaps to accept, since the risk itself has not gone anywhere, and the defaults on the rented side show it. Amazon Bedrock's documentation says that "model invocation logging is disabled by default", and once it is on it collects request and response data for four operations and for the OpenAI-compatible Responses and Chat Completions APIs on the bedrock-runtime endpoint, with bodies over 100 KB delivered to S3 as separate objects, while the same OpenAI-compatible APIs called through bedrock-mantle "are not currently captured". On Gemini Enterprise, an enterprise assistant, the usage audit logs replace query text and replies with <elided> unless an administrator turns on the prompt-and-response logging setting. The research behind this series found the same shape on the seven platforms it read closely, an administrative audit trail that is usually on and the content of interactions behind a second switch, a licence line or both, and the shape holds where the harness is the organization's and only the model is rented, since Claude Code's OpenTelemetry export is off until an administrator sets CLAUDE_CODE_ENABLE_TELEMETRY=1 and an exporter.

Rented surfaces · the content switch

On rented surfaces, the content record sits behind a switch

The administrative trail tends to be on; what was asked and answered waits for someone to turn it on.

As shippedThe switchOnce it is on
Amazon Bedrock
invocation logging disabled by defaultturn on model invocation loggingrequest and response bodies; over 100 KB, to S3 as separate objects
Even with it on, calls through bedrock-mantle are not captured.
Gemini Enterprise
usage audit logs show text as <elided>turn on the prompt-and-response logging settingquery text and replies in the usage audit logs
Claude Code the harness is the organization's; only the model is rented
Open­Telemetry export offCLAUDE_CODE_ENABLE_TELEMETRY=1, exporterOpen­Telemetry metrics and events; prompt content is a further opt-in

The same shape held on the seven platforms the series read closely.

Where the model is rented, the record of what was asked and answered usually sits behind a switch someone has to throw, and the shape holds where the harness is the organization's: Bedrock's invocation logging, Gemini Enterprise's prompt-and-response setting and Claude Code's telemetry variable, which turns on metrics and events while prompt content stays a further opt-in. Even with Bedrock's switch on, calls through bedrock-mantle are not captured. Vendor documentation read 16 November 2026 (Bedrock) and 9 November 2026 (Gemini Enterprise, Claude Code); Tier B for what each switch does, and nothing here says how well the resulting log serves an investigation.

So on a rented surface the security team's work moves to the components it still holds or configures. On an enterprise assistant (S2) the organization operates two components outright, the identity provider and the policy decision point, and configures seven more that the vendor runs, connectors, retention, custom-agent instructions and OAuth consent among them, which is where most of the configuration work sits, while the audit record is the vendor's export and the table lists no enforcement point unless the team has routed assistant traffic through an egress proxy or SSE of its own. Of the rented surfaces, only managed build platforms (S7) and direct API use through a gateway (S8) let the organization hold all three of identity, an enforcement point and an audit record it controls. Agents that reach vendor-hosted MCP servers add one more case where the record is whatever the vendor exports, which the MCP logging piece works through from the protocol side.

That is still a list worth working, because the content switches that exist can be thrown and the records they produce can be landed somewhere the organization controls before the vendor's retention runs out. For the one case this series has measured, a coding-agent fleet, keeping that record in object storage cost little: in a lab run on agent telemetry retention, a year of full prompt text for 1,000 users came out at about $20 to $79 a month in S3 Standard at average volume across the cases fixed before the run, a little more than double that at p90, at a list price read in June and with synthetic records standing in for real ones. The same stream sent to a SIEM that prices by ingest is a different bill, so on the rented side the expensive part is more likely to be getting the switch turned on, the export wired and the content landed in the right store than the storage itself.

Sizing

Sizing the decision to the team

My own view, which I hold as a practitioner opinion and not as something this series measured, is that vendor-managed surfaces may well be preferable for many organizations, and that it depends heavily on the organization, because for a small or mid-sized company managing a larger internal attack surface, a self-hosted serving tier or a fine-tuned model pipeline, is a real challenge in a sector moving this quickly. So for those teams I'd default to renting the surfaces that can be rented (enterprise assistants, managed build platforms, direct API use behind a gateway) and spend the security team's effort on what it still holds or configures there. Self-hosting and fine-tuning then need a named reason, such as data residency, cost at scale or a capability the rented models lack, rather than arriving by default because a team could stand them up. That default covers the surfaces an organization decides on, and local models on laptops, like the Ollama host in the opening, tend to arrive whatever the policy says, which makes them a discovery problem that a later piece on finding shadow AI takes up.

The build question gets the same answer for a related reason. A study of 133 popular GitHub systems found that 65 percent had a truck factor of two or less, meaning the departure of one or two key developers could leave the project in serious trouble, and those are projects with a worldwide pool of possible contributors, so my inference, which is Tier D and transfers an open-source result to internal tooling, is that a custom tool built by a five-person security team probably starts with a truck factor of one, unless the team deliberately puts a second person on it from the first commit, which a paid team can require and an open-source project can't. For a small team that tends to shrink "build" down to configuration and thin glue, meaning the settings, the detection rules over fields the SIEM already types and the job that lands vendor exports in the team's own store. The fuller case, along with what a build needs in place before it is safe to keep, is the subject of a later piece on custom tools, and turning on what you already license comes before either.

Larger or regulated organizations may reasonably choose to own more, and when they do they need the staff and the telemetry the owned surfaces demand, which the table suggests means getting four or five teams to operate and log consistently, and the inventory run suggests means not assuming the existing inventory tools will see the models. For those organizations the decision is less about whether to own and more about making each owned surface pay its way in records, so that a self-hosted serving tier or a fine-tuning pipeline arrives with an inventory entry, a log level chosen on purpose and a named team for each component, before it arrives with users.

Sizing · the default, the exception, the rest

Rent by default, own with a reason, find the restThree lanes. Rent what can be rented, meaning enterprise assistants, managed build platforms and direct API use behind a gateway, and work the identity provider, the enforcement point, the configuration and the exported log. Own a self-hosted serving tier or a fine-tuning pipeline only with a named reason such as data residency, cost at scale or a capability the rented models lack, and, for organizations that do own, give each owned surface an inventory entry, a deliberately chosen log level and a named team per component. Local models on laptops arrive whatever the policy says and are a discovery problem.Rent by default, own with a reason, find the restPractitioner view (Tier D), for small teams and for larger or regulated ones that own more.Rent what can be rented• enterprise assistants• managed build platforms• direct API use behind a gatewayWork what you still hold or configurethe identity provider, the enforcement point,the configuration and the exported logOwn only with a named reason• data residency• cost at scale• a capability the rented models lackFOR ORGANIZATIONS THAT DO OWNMake it pay its way in recordsan inventory entry, a log level chosen on purposeand a named team for each componentArrives whatever the policy says• local models on laptops, likethe Ollama host in the openingTreat it as a discovery problemthe subject of the later pieceon finding shadow AI
The sizing argument as three lanes: rent the surfaces that can be rented and work what the team still holds there, own a serving tier or a fine-tuning pipeline only for a named reason, make each owned surface pay its way in records (the condition the section sets for larger or regulated organizations that choose to own more), and treat local models on laptops as something to discover rather than decide. This is the practitioner view stated in the section above (Tier D), not a measured result.

Limits

Limits of this argument

Counter-evidence

What would change my mind

  • A measured comparison of incident outcomes, or of detection coverage, between organizations that rent and organizations that own comparable AI surfaces, which the research behind this series does not include; the trade here is argued from who operates which component, and a result in either direction would replace it.
  • Rented platforms turning content logging on by default with retention the customer controls, which would shrink the visibility gap renting accepts and move the default further toward renting.
  • Inventory and SBOM tooling that types locally served models reliably, including content-addressed stores like Ollama's, which would lower the inventory part of the cost of owning and make self-hosting easier to justify for a mid-sized team.

Bottom line: the first AI-security decision for many teams is which surfaces to own, and for a small or mid-sized team I'd rent what can be rented, work the identity provider, the enforcement point, the configuration and the exported log on those surfaces, and keep self-hosting and fine-tuning for the cases with a named reason, accepting that the vendor's logging choices become my visibility gaps. The next piece takes the half of the CoSAI map that is new and asks how much of it the schema can hold.

Sources

#SourceWhat it supportsTier
1Security Data Works research strand on deployment surfaces and the CoSAI map, long ownership table (2026-11-09), rolled up 2026-11-16Components operated and shared per surface, teams named, identity, enforcement and audit rowsD (cells drafted in one pass, no second reader)
2Owner perspective on rent versus own, 2026-11-09The default for small and mid-sized organizations; named-need rule; larger organizations may own moreD (stated practitioner view)
3Lab run R4, "Can SBOM and scanner tooling see models, MCP servers and agent extensions?", 2026-11-09, sdw-lab-benchmarks/ai-artifact-sbomSame weights found as a named GGUF file and missed in Ollama's store by Syft, Trivy and ai-bom; safetensors directory found by SyftFirst-party measurement, re-run by a second agent on the same rig (verified with fixes)
4vLLM source, vllm/engine/arg_utils.py at 902364d1 (main) and at release v0.32.0, read 2026-11-16; PR #21739, merged 2025-08-01Request logging off by default; prompts only at DEBUG; default changed in August 2025B
5AWS, "Monitor model invocation using CloudWatch Logs and Amazon S3", read 2026-11-16Invocation logging disabled by default; operations covered; bedrock-mantle not capturedB
6Google Cloud, "Access Gemini Enterprise usage audit logs with Cloud Logging", read 2026-11-09Text values replaced with <elided> unless the prompt-and-response setting is onB
7Anthropic, Claude Code monitoring documentation, read 2026-11-09OpenTelemetry export off until enabledB
8ATLAS moves fast and deprecates nothing, and the ATLAS releases list on GitHub, read 2026-11-16The eight ID removals between v2026.06 and v2026.10; six releases v2026.05 to v2026.10A for release data
9MCP just told you where its logs wentThe 2026-07-28 MCP revision's logging changes; hosted MCP serversA for the specification, as carried there
10What to keep when the agent did itAbout $20 to $79 a month in object storage to keep a year of full prompt text for 1,000 coding users at average volumeFirst-party measurement, as carried there
11Avelino, Passos, Hora and Valente, "A Novel Approach for Estimating Truck Factors", ICPC 201665 percent of 133 popular systems with a truck factor of two or lessA