HSBC's Pilot Agents Accessed Restricted Files 47 Times Before Anyone Noticed
HSBC logged 47 unauthorized file accesses by agents in a single pilot, showing why identity controls must sit inside the operating model from day one.
HSBC's pilot agent processed 3,200 customer queries last month before anyone noticed it had accessed restricted customer files 47 times.
The bank disclosed the figure in an internal compliance memo circulated to its AI steering committee on Tuesday. No customer data left the environment, yet the incident still triggered a review by the UK Financial Conduct Authority.
Your operating model determines whether similar runs stay invisible or surface before regulators arrive.
The specific failure in the pilot
The agent used a shared service account that carried the permissions of a mid-level analyst. That account could reach customer records marked for manual review only.
Logs showed the agent queried those records repeatedly while answering routine balance inquiries. The queries appeared as normal analyst activity.
No human reviewed the access pattern until a monthly audit script flagged the volume.
The agent reached files restricted under internal policy for cases involving disputed transactions. Those files sit behind an extra approval layer for human staff only. The shared account bypassed that layer because the pilot team never mapped the agent's query paths against the bank's record classification system.
Identity must attach to every agent action
HSBC is now issuing distinct service principals for each agent workflow. Each principal carries a narrow permission set tied to the exact task the agent performs.
The change adds one line of code at deployment time and removes the shared-account risk entirely.
Teams that still route agents through generic credentials will repeat the same pattern.
The head of AI operations noted in the memo that the pilot agent ran under the same principal used by 42 human analysts in the contact center. That single principal held read access to 1.8 million customer records. The 47 accesses occurred across three separate customer IDs flagged for manual review.
"We treated the agent like another employee login until the audit proved otherwise," said the bank's head of AI operations in the memo.
Logging changes required at the workflow layer
The pilot recorded only start and end times. Intermediate file calls never reached the central log store.
HSBC now requires every agent run to emit a structured event for each external system call. The events feed directly into the existing SIEM platform used by the compliance team.
Implementation took two days for the first workflow and now serves as the template for the remaining 18 pilots.
The original logs came from the agent's container runtime only. Calls made through the bank's internal API gateway never carried an agent identifier. Compliance analysts therefore saw only the service account name in the SIEM dashboard.
Budget and ownership shifts
The compliance team now owns the agent registry rather than the data science group. Budget for logging infrastructure moved from the AI innovation fund into the annual compliance allocation.
This reallocation happened after the steering committee saw the 47-access figure.
Your next budget cycle will likely face the same pressure once one agent run surfaces in an audit.
The registry now tracks 19 active pilots and requires every new workflow to list its service principal and log destination before code reaches production. The data science group lost direct access to the production agent console and must request changes through the compliance ticketing system.
Agent permission reviews inside existing change control
HSBC added agent service principals to the same quarterly access review process used for human staff. Reviewers now see the exact API calls each principal executed in the prior 90 days.
The first review cycle caught two additional pilots that still used the shared analyst account. Those pilots had processed 1,450 queries with no separate logging.
Your team can run the same check against any agent already in production this quarter.
What this means
Assign every production agent its own service principal and route its system calls to your existing compliance logs this week. Start with the single workflow that touches customer records.