CyberSecAI  ·  Advanced AI Engineering & Security Delivered and aligned to the OWASP AISVS standard
2-Day Advanced Masterclass · Hands-on · Live GPU
Build · Train · Tune · Secure

Build, Operate and Secure AI with the OWASP AISVS Standard

Two days of deep engineering — not prompt tricks. You'll build a language model from scratch, train it live on a GPU, tune it the way the frontier labs do, turn it into a chatbot, then secure the whole stack against OWASP AISVS — the world's only security verification standard for AI. You leave with the model you built, the toolkit, and the playbook.

2 days · intensive, hands-on Live GPU training · build a real model OWASP AISVS · secure to the standard Cohort & private corporate delivery
Why this course

Everyone can use an LLM. Almost no one can build, optimize, and secure one.

The market is flooded with "prompt engineering" and API-wrapper courses. This is not that. This is the engineering tier: you will stand up a real training run, see the loss fall in real time, apply the techniques that separate a working model from a competitive one, and then do the thing the field is almost entirely missing — secure the model and its delivery stack to a formal standard.

Taught by the founder of CyberSecAI and the former OWASP-AISVS Co-Leader (v1.0). You will not get a slideware overview. You will build, break, and harden, with the tooling in your hands.

YOU WILL BUILD

A working LLM, from scratch

Modern architecture, a curated dataset, and a live GPU run that produces a real, auditable model — yours to keep.

YOU WILL OPTIMIZE

Like the frontier labs

The stability and efficiency techniques that make models train cheaper and perform better. The playbook the labs don't publish.

YOU WILL SECURE

To OWASP AISVS

Threat-model and harden the full stack — model, RAG, MCP, agents — and verify it against the world's only AI security standard.

What you walk away with

Skills that are rare, valuable, and immediately useful

  • Train a real model from scratch on a live GPU — and understand every stage, from data to weights.
  • Curate training data the way real pipelines do: dedup, quality filtering, decontamination, mixing.
  • Optimization techniques for stable, cheaper training and stronger models (the advanced material).
  • Build your own chatbot — instruction-tune your base model with SFT and watch it start to answer.
  • Audit any model — read training quality and provenance straight from the weights, no data needed.
  • Secure MCP, RAG and agentic stacks against real attacks, hands-on with deliberately-vulnerable targets.
  • Verify against OWASP AISVS — the L1/L2/L3 controls, mapped to what you just built.
  • A complete toolkit — including Claw, a scanner that grades MCP, AI and RAG stacks against OWASP standards — plus the model you trained.
The syllabus

Two days, built to take you from foundations to a hardened, production-grade stack

Classes are custom built from the following learning modules. Instructors select ~16 hours for a 2-day delivery, tailored to the audience. Custom formats from 1 to 5 days available. (Times are approximate.)

Foundations

How LLMs Actually Work

00-00 The Anatomy of a Modern LLM 1 hr

What is inside the weights: parameters, layers, attention, and why "it's just matrix multiplication" is both true and misleading.

00-01 Tokenization from First Principles 1 hr

BPE tokenizers, vocabulary design, and why tokenizer choices become security and cost decisions later.

00-02 Embeddings and Contextual Representation 1 hr

From static vectors to contextual embeddings; what "the model understands" really means.

00-03 Attention and the Transformer Block 1.5 hrs

Self-attention step by step, on paper and in code, with a working minimal implementation.

00-04 The Modern Recipe 1.5 hrs

RMSNorm, RoPE positional encoding, grouped-query attention, SwiGLU and QK-norm: what each does and why every serious model since 2023 uses them.

00-05 Scaling Laws and What Size Buys You 0.5 hr

Parameters vs data vs compute; reading a scaling decision the way a lab does.

Data Engineering

The Part Everyone Skips

01-00 Dataset Sourcing and Licensing 1 hr

Where training data comes from, provenance, and the legal exposure hiding in a corpus.

01-01 Production-Grade Curation 1.5 hrs

Quality filtering, heuristic cleaning and education-value scoring on a real open corpus.

01-02 Deduplication at Scale 1 hr

MinHash dedup hands on: why duplicated data poisons evaluation and inflates memorization risk.

01-03 Data Poisoning: The Attacker's View 1 hr

How poisoned samples enter a corpus, what they do to a trained model, and pipeline controls that catch them.

Training

Watch Your Own Model Learn -- Live

02-00 The Training Loop, Demystified 1 hr

Loss, gradients, optimizer state; reading a loss curve like an engineer.

02-01 Training Stability in Practice 1 hr

Warmup-stable-decay schedules, z-loss, gradient clipping: the tricks that keep runs alive.

02-02 LIVE RUN: Train a Real LLM on Cloud GPUs 2 hrs

The class launches a real ~180M-parameter training run and watches it learn in real time, from gibberish to grammar. live GPU

02-03 Checkpoints, Evaluation and Knowing When to Stop 1 hr

Perplexity, held-out evaluation, and honest measurement of a small model.

02-04 From Base Model to Useful Model 1 hr

Instruction tuning and fine-tuning: what changes, what it costs, and when fine-tuning an open model beats building.

02-05 Inference and Serving 1 hr

Running your model behind an OpenAI-compatible endpoint; the moment it becomes an attack surface.

02-06 Quantization 0.5 hr

Shrink your model to run anywhere -- INT8/INT4 and GGUF -- and the size-vs-speed-vs-quality trade-offs of real deployment.

02-07 Embeddings and Vector Stores 1 hr

How text becomes vectors, building and querying an embedding store, and the security pitfalls that follow.

The Standard

OWASP AISVS 1.0 from the Inside

03-00 Why AI Needed Its Own Verification Standard 1 hr

What breaks when you point ASVS-era thinking at an AI system; the origin and intent of AISVS, from the former Co-Leader (v1.0).

03-01 The 12 Categories and 191 Requirements 1.5 hrs

A guided tour of the whole standard: what each category verifies and how they interlock into one architecture.

03-02 Levels and Targeting 1 hr

L1/L2/L3: cumulative levels, choosing a target level for a system, and what regulators and buyers will ask for.

03-03 Mapping AISVS to What You Already Do 1 hr

EU AI Act, NIST AI RMF and ISO 42001 in relation to AISVS; the standard as the engineering layer under governance frameworks.

Attack

Break the Stack You Just Built

04-00 Prompt Injection, Direct and Indirect 1.5 hrs

Live injection against the class model and a RAG pipeline; why filtering alone always loses.

04-01 Jailbreaks and Guardrail Evasion 1 hr

Roleplay, encoding and multi-turn attacks against the model's safety behaviour.

04-02 RAG and Vector Store Attacks 1 hr

Poisoned documents, embedding-space tricks and retrieval manipulation against the lab's vector database. Hands on with dvrag.

04-03 Model and Data Extraction 1 hr

Membership inference, training-data regurgitation, and model-stealing techniques against the class model.

04-04 Supply Chain Attacks on AI 1 hr

Malicious model files, compromised dependencies, Hugging Face risk surface, and what a backdoored checkpoint looks like.

04-05 Denial of Service and Resource Exhaustion 0.5 hr

Unbounded allocation, oversized payloads, and the CWE-770 pattern that affects every major MCP SDK.

04-06 Agent and Tool-Use Attacks 1 hr

Confused deputy, tool-poisoning, and what happens when an agent acts on adversarial retrieval. Hands on with dvmcp.

04-07 MCP Protocol Attack Surface 1.5 hrs

Authentication, transport, injection and tool-integrity attacks -- attacked and defended against a deliberately-vulnerable MCP server.

04-08 CVE Research and PoC Development with AI 1 hr

Use AI to accelerate vulnerability research and build proof-of-concepts -- with responsible-disclosure discipline throughout.

Secure

Harden to AISVS, Control by Control

05-00 C01: AI Governance and Risk 0.5 hr

Documenting the system, assigning ownership, and the risk assessment requirements.

05-01 C02: Input Validation and Sanitization 1.5 hrs

Hands on: deploying Presidio and prompt-guard tooling to block injection, PII leakage and malformed input before it reaches the model.

05-02 C03: Model Lifecycle 1 hr

Signed model artefacts, provenance tracking, and supply-chain verification with SBOM tooling (Syft, Grype, Cosign).

05-03 C04: Model Serving and Inference 1 hr

Secure inference runtime configuration, request authentication, rate limiting, and the boundary where crypto controls live.

05-04 C05: Access Control and Identity 1.5 hrs

OPA policy-as-code, fail-closed authorization, agent identity (ECDSA P-256 signed credentials), and zero-trust architecture for AI.

05-05 C06: Software Supply Chain 1 hr

Dependency scanning, container image signing, and the difference between "scanned" and "verified" in an AI deployment pipeline.

05-06 C07: Output Encoding and Validation 1 hr

Hands on: sensitive-entity-only output redaction, stopping the model from leaking what the input guards caught.

05-07 C08: Data Protection 1 hr

Vector database access control, embedding isolation, and encryption at rest for the knowledge store.

05-08 C09: Orchestration and Agents 1.5 hrs

Multi-agent isolation, trust-gated actions (L0-L4), human-in-the-loop for critical operations, and signed execution receipts.

05-09 C10: MCP and Plugin Security 1 hr

Tool integrity verification, per-message signing (MCPS), and preventing prompt injection through tool responses.

05-10 C11: Adversarial Robustness 1.5 hrs

Hands on: red-team the secured stack with promptfoo and garak; verify that the controls deployed actually hold.

05-11 C12: Monitoring, Logging and Audit 1 hr

Tamper-evident audit trails, hash-chained receipts, anomaly detection, and what an incident responder needs from an AI system's logs.

Labs

Hands-On Lab Options

06-00 Build Lab: Train an LLM from Scratch 3 hrs

Full supervised lab: tokenizer, dataset, training run on cloud GPUs, evaluation and checkpoint export. live GPU

06-01 Attack Lab: Break It Before They Do 2 hrs

Competitive red-team exercise against a hardened RAG pipeline and agent stack; scored on findings. dvmcp dvrag

06-02 Secure Lab: AISVS Gap Analysis and Remediation 2 hrs

Run the Claw scanner against the class stack, review the gap report, deploy fixes, and re-scan to verify closure. Claw OWASP AISVS

06-03 Capstone: End-to-End Deployment and Verification 2 hrs

Deploy the full stack (model + RAG + agent + controls) to a cloud environment and verify every AISVS control fires as designed.

06-04 Prediction Model Lab 1.5 hrs

Train a small, real prediction model end to end on the GPU -- your data, features, model, evaluation. The "build an AI, not just prompt one" skill.

06-05 Agentic AI Lab 1.5 hrs

Construct a working agent -- tools, planning, memory -- and the human-in-the-loop controls that keep an autonomous system safe.

~42 hrs
Total instructional hours (all modules)
43
Individual modules across 7 sections
1-5 days
Flexible delivery, tailored to audience
From the lab

You'll watch your own model being trained — live

Not someone else's results. A real run from the course: a model trained from scratch on a live GPU — loss falling from 11.0 to ~3.4 over a budget-capped 3-hour run.

Training loss curve
The loss falling in real time as the model learns.
Live GPU training run on Modal
Live GPU run, 3 hours, trained to completion and checkpointed.
Tooling & the standard

Hands-on security tooling — built on our own advanced AI security testing tools

Attack and defend real targets — prompt injection, tool poisoning, retrieval poisoning, unsafe output — with purpose-built tools we created for testing AI systems, then grade the results against OWASP AISVS.

Claw

Claw

A security scanner for MCP servers, AI agents and RAG stacks — probes them for real vulnerabilities and grades the results against published OWASP standards.

OWASP AISVS

The world's only AI security verification standard — the level-based controls you'll verify your own stack against, taught by the former Co-Leader of the standard (v1.0).

Under the hood

Real engineering depth

A sample of the concrete, technical ground we cover. You leave able to talk about — and work with — every one of these:

ARCHITECTURE

Tokenization, attention & KV-cache, rotary positions (RoPE), grouped-query attention (GQA), RMSNorm, SwiGLU, mixed-precision (bf16/fp16).

TRAINING

Data curation & dedup, learning-rate schedules, gradient behaviour, training stability, hyper-parameter transfer, and budget-capped GPU runs.

EFFICIENCY & SERVING

Quantization (INT8/INT4, GGUF), KV-cache management, batching and throughput, and the size-vs-speed-vs-quality trade-offs of deployment.

POST-TRAINING

Supervised fine-tuning (SFT) and parameter-efficient methods (LoRA-style adapters) — the approaches worth knowing, and their pitfalls.

RUNTIME SECURITY

eBPF-based runtime observability of AI workloads, syscall & network-egress visibility, sandboxing untrusted models and tools, workload identity.

PROTOCOL & DATA

MCP transport & auth, RAG retrieval pipelines, embedding/vector-store security, and multi-tenant isolation.

Who should attend

Built for the people who design, build, and run AI in production

AI Builders & ML Engineers

Go beyond fine-tuning APIs — understand and control the full model lifecycle.

Software Developers

Move into AI engineering with real, hands-on depth instead of buzzwords.

Enterprise & Solution Architects

Design AI systems you can actually reason about, secure, and defend.

AI Service Providers

Differentiate on security and provenance — and prove it to your customers.

DevOps & Platform Engineers

Operate, monitor, and harden AI workloads with the right controls.

Security Engineers

Add AI to your remit with a standards-based, hands-on toolkit.

Prerequisites: a basic engineering background — comfort with the command line and a little Python. No prior machine-learning experience required; we build the mental model from the ground up.

What you'll gain

Walk away with a built, broken and secured AI stack

The differentiator

Secured to OWASP AISVS — the world's only AI security verification standard

Plenty of courses teach you to build. This is the only one that teaches you to build and verifiably secure your AI to a formal standard — taught by the former Co-Leader of that standard (v1.0).

The OWASP Artificial Intelligence Security Verification Standard (AISVS) is the AI-era equivalent of ASVS: a structured, level-based set of controls for delivering AI securely. You won't just hear about it — you'll verify your own stack against it.

Explore OWASP AISVS →

The architecture

The system you'll learn to build, map, and secure

Modern AI isn't one box — it's eight layers spanning untrusted, perimeter, control, model, knowledge, action, data and infrastructure zones, with trust boundaries between every one. You'll learn to reason about each layer and verify the controls that cross them, straight from the OWASP AISVS reference architecture:

OWASP AISVS Reference Architecture — the 8 layers of a modern AI system, the trust boundaries between them, and the 12 AISVS chapters mapped to each layer. This is the map you'll learn to secure.

Your instructor

Raza Sharif

Raza Sharif RS

Recognised authority on AI design & delivery · World-class cyber-security leader

Raza Sharif is a recognised authority on the secure design and delivery of AI and a world-class cyber-security leader. He is a Fellow of the British Computer Society (FBCS) and founder of CyberSecAI, and former Co-Leader of the OWASP Artificial Intelligence Security Verification Standard (AISVS) (v1.0), the world's only security verification standard for AI.

He is the author of "Breach 20/20" on data-breach prevention, with deep roots in cyber-forensics — digital evidence, chain of custody, admissibility — and he builds the very tools he teaches: from-scratch model-training pipelines, model-forensics auditing, and OWASP-mapped security scanners. This is engineering from someone who ships, not theory from someone who reads.

FBCSCISSPCSSLPCEHCHFI OWASP former AISVS Co-Leader (v1.0)Author, "Breach 20/20"Credited: CVE-2026-39313 (mcp-framework DoS)Creator of the OpenAPI x-agent-trust extension — declares agent trust levels (L0–L4) in an API spec
Reserve your seat

Two days that change how you build AI — for good.

You will leave with a model you trained, a toolkit you can use Monday morning, and the rare ability to build, optimize, and secure AI to a formal standard. Seats are deliberately limited so the hands-on stays hands-on.

2 days intensive, hands-on Limited cohort seats Private corporate cohorts available
Request Enrollment

Corporate & sovereign cohorts, and bespoke on-site delivery, on request.