AI Security

LLM & RAG Security Assessment

Testing generative AI and retrieval systems for the failure modes specific to them.

Structured assessment of LLM applications and retrieval-augmented generation (RAG) systems against the failure modes specific to them — prompt injection, retrieval manipulation and output-handling weaknesses that conventional application security testing does not cover.

Assessment capability being developed and validated through the Shah AI Security Lab. Methodology and reproducible test cases are the current focus — see the Lab for status.

What This Covers

Covers

  • Direct prompt injection
  • Indirect prompt injection
  • Sensitive information disclosure
  • Insecure output handling
  • Retrieval manipulation
  • RAG poisoning
  • Malicious documents
  • Vector database authorization
  • Cross-user / cross-tenant leakage
  • Context leakage
  • Insecure APIs
  • Excessive data access
  • Guardrail bypass

Typical Deliverables

  • Attack scenarios
  • Evidence
  • Reproducible findings
  • Business impact
  • Severity rating
  • Mitigations
  • Retest guidance

Selected Experience

Evidence, not just claims

Saudi Government Cloud Migration

Supported a major Saudi government organization's migration from a local cloud provider to Google Cloud under Saudi data-residency and cybersecurity requirements. Scope included Windows/Linux workloads, DNS, networking, security architecture, migration, administration and operational support.

ISO/IEC 27001 Government Program

Led/supported ISO/IEC 27001 implementation and certification-readiness for a major government organization, including ISMS, risk, controls, remediation and audit preparation.

Enterprise AWS Migration

Architecture and migration work across smaller organizations and large enterprises, including AWS architecture, IAM, networking, Windows/Linux workloads, cloud security and operational planning.

International & Security-Sensitive Experience

25+ years across Europe, international environments and Saudi Arabia, including experience associated with CERN, the Swedish Defence Research Agency (FOI), Saudi government and regulated/research environments.

How an Engagement Works

From your problem to a decision you can defend

Every engagement starts with your situation, not a methodology deck. Four steps, each with a clear output — and a no-obligation free 30-minute review if you want to test the fit first.

  1. Understand

    A short conversation about the decision in front of you: the environment, the constraints, the objective and who has to sign off.

  2. Scope

    We agree what is being solved, what information and access are needed, what you receive at the end and where the engagement stops. NDA and confidentiality requirements are accommodated where required.

  3. Assess

    Architecture and documentation review, stakeholder discussions, technical assessment and/or workshops — whichever the agreed scope needs.

  4. Recommend

    You receive clear executive findings plus technically actionable recommendations. Implementation or ongoing advisory can be scoped separately if you want it.

Common Questions

Common questions organizations are asking

How do we know whether our RAG application can leak confidential information?

Through structured testing against retrieval-specific failure modes — cross-tenant leakage, context leakage, over-broad retrieval and vector database authorization gaps — not just testing the model in isolation. See LLM & RAG Security Assessment.

Can an uploaded document manipulate our AI assistant?

Potentially, via indirect prompt injection or malicious document content embedded in what gets retrieved. This is assessed directly as part of RAG and agentic AI security review.

What happens if an AI agent is tricked into invoking a privileged tool?

This is the core question behind Agentic AI & MCP Security — reviewing tool permissions, delegation, identity propagation and human-approval boundaries so a manipulated agent can't act outside intended scope.

How should agent identities and delegated permissions work?

Agent identity and delegated authority should be explicit, scoped and auditable — not inherited implicitly from a user or service account. This is reviewed as part of an AI security architecture review.

Should sensitive AI workloads use cloud models, private models or local LLMs?

It depends on data sensitivity, latency, cost, regulation and operability — an architecture decision, not an ideological one. See Secure Private / Sovereign AI.

How do we place governance around employee use of external LLM services?

Through an AI inventory, an acceptable-use policy and, where appropriate, an LLM gateway that enforces model allowlists and data-protection controls centrally rather than per team.

How should AI prompts, tool calls and security events be logged?

With enough context to investigate an incident — identity, prompt, retrieved context, model used, tool invocation and the authorization decision made — designed in from the start rather than added after a gap is found.

How can AI security telemetry integrate with our SOC/SIEM?

By treating AI-specific events (prompt, retrieval, agent/tool activity) as another log source feeding existing detection engineering and incident-response processes, not a separate silo.

How do we assess third-party AI platforms before procurement?

Through an AI security posture assessment covering the vendor's model/data handling, authentication, data residency, sub-processor use and incident-response commitments — alongside the usual vendor-security review.

How do ISO/IEC 27001 and ISO/IEC 42001 work together?

ISO/IEC 42001 is designed to extend an existing ISMS, not replace it — AI-specific risk management and lifecycle controls sit alongside ISO/IEC 27001's information-security management system rather than duplicating it.

How do Saudi data residency, privacy and AI governance requirements affect an AI architecture?

They shape where models and data can run, what monitoring and human oversight are expected, and how third-party AI services are governed — addressed directly in Secure Private / Sovereign AI and AI Governance & Assurance.

A decision is waiting for sign-off. Get an independent view first.

Tell me what is being decided and what is at stake. I will first say honestly whether my experience fits — then we talk about scope, not before.

Or connect on LinkedIn first.