Knowledge is Power

Sitewide Search

Search Bare Metal Cyber

Search exact control and technique identifiers, Cyber Wiki articles, framework records, playbooks, books, podcasts, Academy courses, individual lessons, and BMC Cyber Challenge activities.

Current course · Domain 3 · Access Controls Concepts · S01E34

Protect the Network Paths Around AI Data

A housing-assistance office discovers that its public AI assistant has returned words from a private household case note. The assistant sounds helpful and remains online, but its underlying retrieval component can reach records it was never supposed to use. This lesson traces th…

ISC2 Certified in Cybersecurity (CC) Transcript available April 22, 2026
Lesson34

Listen Now

Lesson Focus

What this lesson covers

A housing-assistance office discovers that its public AI assistant has returned words from a private household case note. The assistant sounds helpful and remains online, but its underlying retrieval component can reach records it was never supposed to use. This lesson traces that failure from the resident's question through the application, AI service, document connector, automated identity, and repository. You will see why a valid network connection is not proof of appropriate data access and why fixing a single bad response does not close the pathway that produced it.

The investigation leads to practical controls: segmentation between public and sensitive services, narrower permissions for automated identities, controlled outbound connections, protected logging, and separation between development and production. The episode also distinguishes encrypted traffic from authorized disclosure, explains how ordinary traffic changes become useful monitoring signals, and follows the office through containment and a safer fallback service. The central lesson is that natural-language output can conceal a very conventional breach of network and data boundaries. This episode is produced by baremetalcyber.com.

Companion Books

Reinforce this lesson with the course books.

Use the study guide to organize the ideas from the audio lesson, then use the flashcards book for active recall and rapid review.

Read the transcript2,235 words · about 11 minutes

The housing-assistance office has a useful new service. Residents can ask an artificial intelligence assistant about appointment times, the documents needed for an application, and where to find a nearby service center. The assistant usually gives clear answers. Then a staff member notices something strange. A resident asks an ordinary question about appointment availability and receives a sentence copied from an internal case note. It includes information about another household that should never have been available to the public assistant. Nobody remembers authorizing that access. The assistant is still online, and the conversation sounds natural. The problem is that information crossed a boundary it should have respected.

The immediate temptation is to search for the single bad answer and delete it. That would leave the underlying path intact. The better investigation begins by tracing where information could have traveled. The resident's question reached an application. The application sent it to an AI service. Another component retrieved material to give the assistant current information. A service identity allowed that retrieval component to read a repository. The assistant then returned selected text through the public interface. Each link may have been functioning exactly as configured. The combined result was unauthorized disclosure.

This is a network-security problem even though the visible symptom is an AI response. Network protection begins with a plain distinction between a connection that is possible and a connection that is appropriate. A service might be able to contact a database because the systems share a network or because a broad firewall rule allows the traffic. That tells us nothing about whether the application has a legitimate reason to request every record in that database. Effective protection needs both a deliberate communication path and permissions that limit what the service can do after the connection succeeds.

For follow-up reading, the Certified in Cybersecurity study guide from Bare Metal Cyber discusses how data classification, network boundaries, and least privilege reinforce one another. As you revisit the concepts, think about the two document collections. The question to carry into your review is why a working network connection still needed a narrower business purpose.

The housing office originally created two document collections. One contained published instructions for residents. The other contained caseworker notes, identity documents, appeals, and sensitive correspondence. Both collections ended up behind the same search service during a hurried project expansion. A developer added a connector to make the assistant more helpful with complicated questions. The connector used an automated account that could search both collections. The team tested whether answers were useful. It did not test whether the assistant could reach material outside its approved purpose. That missing distinction is our starting point.

Before changing controls, the team needs a trustworthy picture of the system. That picture can be explained without a diagram. A resident connects through the public-facing application. The application uses an AI service that may be run by the organization or by a cloud provider. A retrieval component brings in approved reference material. That component contacts document stores through an authenticated service identity. Administrators maintain the system through separate management tools. Logs collect records of access and communication. Those are different roles, even if several components happen to run on the same cloud platform.

Each role creates a different trust boundary. The public application accepts input from people the office does not control. The document store holds information the office is legally and operationally responsible for protecting. The management interface grants the power to change who can reach what. The development environment may contain unfinished code and test data. The monitoring system receives records that can themselves expose personal details. Treating all these systems as one trusted internal neighborhood gives a compromise room to travel. Separating their roles makes permission mistakes easier to contain and unusual access easier to recognize.

Network segmentation helps reduce those paths. The public-facing application should communicate only with the services required to fulfill the resident's request. The retrieval service should have a deliberately limited route to the approved public collection. Management systems should be reached through controlled administrative paths rather than through the same interface used by residents. A production document store should not become reachable merely because a developer has access to a convenient test environment. Segmentation can involve separate network areas, filtered connections, and more precise controls around individual services. The purpose is to make unnecessary communication unavailable.

The narrower approach is often called micro-segmentation when controls distinguish individual workloads or tightly defined service relationships. That name does not guarantee protection. A policy that allows every application to contact every data service is still broad, even if it is written with a sophisticated management product. The housing office must know which component needs each connection and why. If the public assistant needs to read approved appointment guidance, give that service a path to those materials. Do not give it a general route through the office's private case-management environment.

Network restriction does not replace identity management. Imagine the retrieval component has a network path to the right document collection but its service identity still holds a powerful permission that can read confidential case files through an alternate interface. The boundary remains incomplete. A unique identity tied to a named owner, scoped permissions, protected credentials, and periodic reviews help ensure the automated service has authority only for its intended function. People tend to notice excessive access when it belongs to an employee. The same discipline is needed when the account belongs to a bot or an application that runs unattended.

Now suppose the connector itself is compromised. The attacker cannot immediately move from the public assistant to every business application if network controls limit the connector's reach. If the automated identity can read only approved information, stolen credentials have less value. If sensitive repositories record each access, investigators have a better chance of seeing what happened. These controls do different jobs. Segmentation reduces reachable destinations. Authorization limits permitted actions. Logging supports discovery and explanation. None can completely replace the others.

The housing office's technical team also learns that the assistant contacts a hosted model service outside its local network. This is a legitimate design, but its outbound traffic needs the same scrutiny as incoming traffic. A system that can send requests to any internet destination may be able to send confidential data somewhere the organization never intended. Egress controls restrict outbound connections according to an approved need. The team identifies which external service is necessary, which information may leave the organization, and whether responses and logs are handled under the service agreement. A familiar encrypted connection alone does not establish that the destination is approved.

Encryption in transit protects information against observation or alteration along a network path when it is implemented correctly. It does not decide whether the sender was entitled to obtain that information in the first place. If an overprivileged retrieval service sends a private case note over an encrypted connection to the wrong recipient, the note may be protected while traveling and still be disclosed improperly when it arrives. The control that would prevent that disclosure belongs earlier in the chain: approved data access, proper handling rules, and restricted destinations.

There is another difficult choice here. The security team could simply block every outbound connection from the AI environment. That might stop unintended transfers, but it could also make the service unusable if a necessary model or document service is hosted elsewhere. A defensible restriction begins with actual dependencies. Which service must be contacted for legitimate requests? Which communications are administrative? Which data must remain local? The controls should permit those necessary paths and reject unrelated ones. A service owner is accountable for describing the need; network and security teams can then design and verify the restriction.

For optional practice, the Bare Metal Cyber Academy's Certified in Cybersecurity questions are useful after this lesson because they can test two different failures that look similar. One is a prohibited network path. The other is a permitted path used by an identity with excessive data access. Explaining the different remedies is more valuable than memorizing the name of a control.

Monitoring begins with an expectation of normal behavior. In the original public assistant, retrieval requests should reach the published guidance collection. Traffic to the private case-record service would be unexpected. A large increase in the volume of documents retrieved might deserve review, especially if the assistant previously answered short informational questions. A newly contacted external destination is another useful signal. These observations are not proof of a breach. They are clues that the system may have departed from its approved design.

A monitoring rule needs context to be useful. Consider an unusual burst of outgoing traffic late at night. The organization may be conducting an approved bulk update to the knowledge collection. It may also be experiencing a compromised service that is copying information. The time of day, destination, service identity, volume, recent approved changes, and the sensitivity of the data help investigators distinguish those possibilities. Reacting solely to a traffic spike might shut down a legitimate process. Ignoring a new destination because the traffic is encrypted could miss an actual disclosure.

Logs should be useful enough to reconstruct the event without creating another uncontrolled collection of personal data. The team wants records of which service identity accessed which source, when access occurred, whether a network boundary allowed or denied a connection, and what change introduced the new path. Keeping full resident questions or sensitive case notes in every troubleshooting log could create a new privacy problem. Logging policy therefore includes appropriate detail, access restrictions, retention, and protection against alteration. Security visibility must be designed rather than accumulated by default.

The AI provider may offer built-in monitoring, filters, or isolated environments. Those capabilities can help, but the housing office still needs to understand what the provider operates and what the customer configures. If the customer controls which document collections are connected to its assistant, that decision remains the customer's responsibility. If the customer creates an overprivileged service account, the provider's secure data center does not correct the permissions. The exact boundary varies by service and contract; it should be checked rather than guessed from the fact that the application runs in a cloud.

The development team now proposes a fix in the testing environment. It will narrow the connector and introduce network restrictions. But the test environment was populated months ago from a production document export. Those records include real household details. An attacker who reached that environment could still disclose sensitive data even if the production assistant were repaired. Development and production separation therefore includes data handling as well as connections. Test systems should use appropriate sanitized or synthetic information when possible, with separate identities and carefully managed promotions into production.

Consider what happens during the next feature release. A developer adds a new search capability that queries a second source. The feature works in testing, then a rushed deployment carries the connector into production. If access permissions and network paths can change without review, the original problem is likely to return. Change management should ask which data sources have been added, what new traffic is needed, whether the service identity has gained rights, and how monitoring will recognize the new approved behavior. The security boundary must evolve deliberately with the service.

The office has to respond to the original disclosure as well. It can disable the unsafe retrieval path, protect relevant records, identify the scope of affected information, and escalate according to its incident and privacy procedures. Analysts need to preserve evidence while limiting further exposure. They should not assume that one observed answer proves the entire collection was copied, or that the absence of a dramatic alert proves no other records were reached. Documented investigation and applicable notification decisions belong with the people authorized to make them.

Service continuity remains a practical consideration. Residents still need appointment information. The office could temporarily provide a simpler search of public instructions, route complex cases to staff, or restore a previous version whose access paths are known to be limited. The fallback does not need to be intelligent to be useful. A predictable, restricted service that gives fewer answers is often preferable to a fluent assistant that may expose private files. Recovery must restore trustworthy data flows, identities, and configurations, not merely bring the application back online.

A month later, the assistant has improved. It draws from a small, approved public collection. The retrieval account has narrower rights. Development connections are separated from production records. Outbound communication is restricted to necessary destinations, and reviewers receive alerts when a new source or endpoint appears. These safeguards cannot guarantee that every answer will be correct. They do make it harder for an ordinary application error to become an unrestricted data exposure, and they give the office a way to notice when trust assumptions change.

The lesson from the housing office reaches beyond artificial intelligence. Any application that moves information among users, services, and repositories needs defensible boundaries. AI can make the problem less visible because a natural-language answer hides the underlying requests. The security work is still concrete: know the data, identify the services, permit only legitimate paths, grant each automated identity only necessary rights, and examine changes in actual communication. If a service can produce a correct answer by reaching records it should never see, the architecture needs attention before the next answer leaves the network.