All GIAC exams

Free GAIPT practice test: 30 questions with answers

30 original questions for GIAC AI Penetration Tester, drawn from every topic area. Answer each one to see whether you got it right and why. No sign-up.

Free questions
30
Full bank
112 questions

GAIPT exam guide: topics, cost and format

All 30 GAIPT questions with answers

The same questions as the test above, grouped by exam topic. Open any question to see the answer and explanation.

Defence and Mitigation (5 questions)

  1. Question 1

    Which input control reduces the risk of prompt injection from user-supplied content?

    1. ASeparating system instructions from untrusted content, and treating the untrusted text as data
    2. BConcatenating the user's text directly into the system prompt, so the model sees a single instruction
    3. CAllowing the user to write the system prompt, so that the user can customise the assistant freely
    4. DRemoving every character that is not a letter, so that instructions cannot contain any punctuation
    Show answer and explanation
    Correct answer: A

    Separating instructions from untrusted content, and treating that content as data, limits injected instructions. Concatenation, user-written system prompts and letter-only filtering each leave the risk in place.

  2. Question 2

    Which mitigation best addresses the risk of excessive agency in an AI agent?

    1. ADisable the agent's logs, so that it is not slowed by the audit process during each task it performs
    2. BGive the agent every tool in the organisation, so that it can complete tasks without any delays or prompts
    3. CRestrict tools to the minimum set needed, with scoped permissions and human approval for sensitive actions
    4. DLet the agent grant itself new permissions when it needs them to complete a task faster
    Show answer and explanation
    Correct answer: C

    Restricting tools and permissions, with human approval for sensitive actions, limits what the agent can do. Giving every tool, disabling logs and self-granted permissions each increase excessive agency.

  3. Question 3

    Which practice most helps detect a prompt injection attempt in production?

    1. ADisabling all logging, so that the system is faster and attackers cannot see the detection rules
    2. BLogging and monitoring prompts and tool calls, with alerts for unusual instruction patterns or actions
    3. CStoring prompts only in the model's memory, with no record kept in any external system at all
    4. DAccepting every prompt without monitoring, since the model is designed to resist all attacks by itself
    Show answer and explanation
    Correct answer: B

    Logging and monitoring prompts and tool calls, with alerts on unusual patterns, detects injection attempts. Disabling logs, memory-only prompts and unmonitored acceptance each remove detection.

  4. Question 4

    Which practice reduces the risk of a supply-chain attack through a third-party model or plugin?

    1. AAllow plugins to update themselves in production without any review, to keep them current automatically
    2. BInstall the newest unverified plugins as soon as they are published, to get the latest features quickly
    3. CDownload models from unknown file-sharing sites, since they are often the cheapest available option
    4. DVerify the provenance and integrity of the model and plugins, and pin the versions used in production
    Show answer and explanation
    Correct answer: D

    Verifying provenance and integrity and pinning versions limit supply-chain risk. Unverified plugins, unknown download sites and unreviewed self-updates each increase it.

  5. Question 5

    Which two practices help secure a RAG system against data exposure? (Choose two.)

    1. AEnforce the user's access rights on every retrieved document before it is added to the prompt
    2. BIndex all company documents into one shared store, with no access metadata, so search is simpler
    3. CStore API keys for the vector database in the prompt template, so that retrieval always works
    4. DRetrieve documents without checking their classification, since the model will not reveal sensitive text anyway
    5. ELog retrieved document identifiers and review access patterns for anomalies
    Show answer and explanation
    Correct answer: A, E

    Enforcing access rights at retrieval and logging retrieved documents with anomaly review limit exposure and detect misuse. Shared unrestricted indexes, keys in prompts and ignoring classification each expose data.

Model and Data Attacks (5 questions)

  1. Question 6

    Which attack uses many queries to a model API to approximate its behaviour, producing a copy that the attacker can use without paying for access?

    1. AModel extraction, which trains a surrogate model from the responses of the target API
    2. BDenial of service, which exhausts the capacity of the API so that legitimate users cannot be served
    3. CCross-site scripting, which runs script in the browser of the user who views the model's output
    4. DSQL injection, which inserts commands into database queries that the application builds from input
    Show answer and explanation
    Correct answer: A

    Model extraction trains a surrogate from responses, which is the attack described. Denial of service, XSS and SQL injection are different attack classes.

  2. Question 7

    An attacker inserts crafted examples into the data a model is trained on, so that the model misclassifies a specific trigger input after deployment. Which attack is this?

    1. AEvasion of a sensor, which changes the input to a deployed model to avoid detection at runtime
    2. BPrompt injection, which places instructions in the input that the model reads at inference time
    3. CModel inversion, which reconstructs training records from the outputs of the deployed model
    4. DData poisoning, which corrupts training data so the model learns the attacker's behaviour
    Show answer and explanation
    Correct answer: D

    Data poisoning corrupts training data so that a trigger causes misbehaviour. Prompt injection is an inference-time attack, model inversion reconstructs data, and evasion targets runtime inputs.

  3. Question 8

    Which measure best reduces the risk of training data being recovered from a model's outputs?

    1. AReturn the full probability distribution over every token to every caller, for transparency of the model
    2. BLimit the detail and frequency of outputs, and test the model for memorisation of sensitive records
    3. CAllow unlimited queries from anonymous users, so that legitimate use is never restricted by quotas
    4. DStore the training records in plain text next to the model weights, so that audits are simpler to run
    Show answer and explanation
    Correct answer: B

    Limiting output detail and frequency and testing for memorisation reduce the leakage of training records. Full probability outputs, unlimited anonymous queries and plain-text records all increase leakage.

  4. Question 9

    Which attack tries to determine whether a particular record was part of a model's training data?

    1. AMembership inference, which infers training membership from differences in the model's behaviour
    2. BPrompt injection, which places instructions in the model's input to change how it responds
    3. CCross-site request forgery, which causes a logged-in browser to send unwanted requests to the server
    4. DPort scanning, which probes a host to find which network services it is running on the network
    Show answer and explanation
    Correct answer: A

    Membership inference determines whether a record was in the training data. Prompt injection, CSRF and port scanning are different attacks.

  5. Question 10

    Which two measures reduce the risk of model extraction through a public API? (Choose two.)

    1. ARate limits, authentication and monitoring of query patterns that look like systematic extraction
    2. BReturning full logit values for every token on every response, to give callers maximum detail
    3. CAllowing unlimited anonymous queries, so that legitimate users are never throttled by limits
    4. DMaking the model weights publicly downloadable, so that the community can audit the model
    5. EReturning only the outputs needed by the caller, with limited detail in each response
    Show answer and explanation
    Correct answer: A, E

    Rate limits, authentication and pattern monitoring make extraction harder and detectable, and limiting output detail reduces what an extractor learns. Full logits, unlimited anonymous access and public weights all aid extraction.

Prompt Injection and Jailbreaks (5 questions)

  1. Question 11

    Which attack places instructions in user-supplied content, such as a web page the model summarises, so that the model follows the attacker's instructions instead of the developer's?

    1. AMembership inference, which determines whether a given record was part of the model's training data
    2. BModel inversion, which reconstructs training examples from the outputs of the model over many queries
    3. CIndirect prompt injection, where malicious instructions are embedded in content the model retrieves or reads
    4. DTraining data poisoning, which corrupts the dataset used to train the model before it is deployed
    Show answer and explanation
    Correct answer: C

    Indirect prompt injection hides instructions in content the model reads, such as retrieved pages or documents. Model inversion, membership inference and data poisoning are different attacks on training or outputs.

  2. Question 12

    Which test best checks whether a model can be coerced into ignoring its system instructions?

    1. AAsking the model to restate its system instructions in a role-play scenario that overrides the rules
    2. BAsking the model to summarise a public news article, which has no security relevance to the system
    3. CMeasuring the model's response latency on a short greeting, to check its performance baseline only
    4. DCounting the tokens in a benign user question, to estimate the cost of the request for the budget
    Show answer and explanation
    Correct answer: A

    Role-play and override attempts test whether instructions can be bypassed. Summaries, latency and token counts do not test instruction adherence.

  3. Question 13

    Which control most directly reduces the impact of successful prompt injection on a tool-using agent?

    1. ALetting the agent call every internal API, so that it never needs to ask for help during tasks
    2. BLeast-privilege tool permissions, with human approval for high-impact actions
    3. CRemoving all logging from the agent, so that injected prompts are not recorded and reused later
    4. DGiving the agent administrator credentials, so that no action it attempts is ever blocked
    Show answer and explanation
    Correct answer: B

    Least-privilege tool permissions and approval for high-impact actions limit what an injected instruction can achieve. Unlimited APIs, removed logging and admin credentials each increase the damage.

  4. Question 14

    A tester wants to show a client the real impact of a prompt injection finding. Which evidence is most useful?

    1. AA list of every prompt tried, including those that had no effect, to show the breadth of the testing
    2. BA claim that the model is unsafe, without any reproducible steps or examples of the affected data
    3. CA reproducible proof of concept that shows the data or action affected, with the steps and inputs recorded
    4. DThe model's marketing description, which says that the model is trained to follow safety rules
    Show answer and explanation
    Correct answer: C

    A reproducible proof of concept showing the affected data or action, with steps and inputs, demonstrates real impact. Unsupported claims, unfiltered prompt lists and marketing text do not demonstrate impact.

  5. Question 15

    Which two practices help a tester test prompt injection safely and effectively? (Choose two.)

    1. AUse a dedicated test environment with test data, and record each attempt with its result
    2. BRun injection attempts against live customer data in production, to see the real effect on users
    3. CShare the successful payloads publicly before the client has received the report, to help others
    4. DTest only with the most complex prompts, and skip simple cases that the defences should already block
    5. EIgnore the system's refusals, since the tester is trying to prove the model can be bypassed
    Show answer and explanation
    Correct answer: A, D

    A dedicated test environment with recorded attempts is safe and reproducible, and testing simple cases matters because basic defences should block them. Live production attacks, premature public sharing and ignoring refusals are not sound practice.

Scoping and Reconnaissance (5 questions)

  1. Question 16

    Before testing an LLM-backed chatbot, a tester must agree the rules of engagement. Which item is most important to define first?

    1. AThe number of employees who will receive the final report after the engagement has been completed
    2. BThe brand colours used in the chatbot's interface, so that the test report matches the company style
    3. CThe scope and permitted techniques, including whether prompt injection and data-extraction tests are in bounds
    4. DThe programming language used to write the chatbot's front-end code, which decides the test tools
    Show answer and explanation
    Correct answer: C

    The scope and permitted techniques, including which AI-specific attacks are authorised, must be agreed before testing so that the work stays within authority. Colours, report recipients and front-end languages do not define the authority to test.

  2. Question 17

    Which reconnaissance step helps a tester learn which model and hosting provider an AI application uses, without attacking it?

    1. AReviewing public documentation, client-side code and error messages for model or provider hints
    2. BSending thousands of malicious prompts to the application, to see which ones cause failures
    3. CAttempting to log in to the provider's admin console with guessed credentials from a wordlist
    4. DFlooding the API with requests until it stops responding, to observe the timing of the failures
    Show answer and explanation
    Correct answer: A

    Passive review of documentation, client code and error messages reveals model and provider hints without attacking. Mass malicious prompting, credential guessing and flooding are active attacks outside passive reconnaissance.

  3. Question 18

    A tester finds that an AI application returns detailed stack traces when a prompt causes an error. What is the correct classification?

    1. AAn information disclosure finding, since internal details help an attacker plan further attacks
    2. BA denial-of-service finding, since the application stopped responding to the request in full
    3. CA cross-site request forgery finding, since the request was accepted from an unknown origin
    4. DA non-issue, since error messages are always safe to show to users in a production system
    Show answer and explanation
    Correct answer: A

    Stack traces exposing internal details are information disclosure, which helps an attacker. They are not denial of service or CSRF, and detailed errors are not safe in production.

  4. Question 19

    Which framework is designed to catalogue adversary tactics and techniques against AI and machine learning systems?

    1. AMITRE ATT&CK for enterprise networks, which covers tactics against conventional IT systems only
    2. BMITRE ATLAS, which describes adversarial tactics and techniques against AI systems
    3. CISO 27001, which specifies an information security management system for organisations
    4. DPCI DSS, which specifies controls for the protection of payment card data in merchant systems
    Show answer and explanation
    Correct answer: B

    MITRE ATLAS catalogues adversary tactics and techniques against AI systems. ATT&CK for enterprise, ISO 27001 and PCI DSS do not address AI-specific adversary techniques.

  5. Question 20

    Which resource is the standard reference list for the most critical risks to LLM-based applications?

    1. AThe vendor's list of product features, which describes the capabilities of the model
    2. BThe OWASP Top 10 for web applications, which lists injection and access control risks
    3. CThe NIST special publication on cryptographic key management, which governs key lifecycles
    4. DThe OWASP Top 10 for Large Language Model Applications
    Show answer and explanation
    Correct answer: D

    The OWASP Top 10 for LLM Applications lists the critical risks to LLM applications. The web Top 10, the NIST key management publication and a vendor feature list do not catalogue LLM-specific risks.

Reporting and Ethics (5 questions)

  1. Question 21

    During an AI penetration test, the tester finds personal data in the model's responses. What should the tester do?

    1. ACopy all of the personal data into the tester's own notes, so that the client can be shown the full scale
    2. BStop, record the minimum needed to evidence the issue, and follow the agreed data-handling and escalation process
    3. CPublish the personal data on the tester's blog, to show the scale of the issue to the public and media
    4. DContinue extracting personal data until the tester has a complete copy of every record for the report
    Show answer and explanation
    Correct answer: B

    The tester should stop, record only the minimum evidence, and follow the agreed handling and escalation process. Copying, publishing and extracting full records each breach data protection duties.

  2. Question 22

    Which principle must guide the testing of an AI system that makes decisions about people?

    1. ATesting should focus only on the model's accuracy, since security findings are outside the test
    2. BTesting is unrestricted, since the goal of an AI penetration test is to break the system completely
    3. CTesting must stay within the agreed authorisation and avoid harm to the people the system serves
    4. DTesting should be done in production with real customer decisions, to see the true impact
    Show answer and explanation
    Correct answer: C

    Testing must stay within authorisation and avoid harm to the people the system serves. Unrestricted breaking, accuracy-only testing and testing real customer decisions in production each breach ethical or contractual boundaries.

  3. Question 23

    Which element is essential in a penetration test report for an AI finding?

    1. AA long list of every technical term the tester used during the engagement, without explanation
    2. BSeverity with business impact, reproduction steps, evidence and a clear remediation recommendation
    3. CThe tester's personal opinion of the developers, which helps the client understand the team culture
    4. DA copy of the model weights, included so that the client can replicate the test independently
    Show answer and explanation
    Correct answer: B

    A good finding gives severity with impact, reproduction steps, evidence and remediation. A glossary of jargon, personal opinions and model weights do not make a finding actionable.

  4. Question 24

    Which two items should be included in an AI penetration test report? (Choose two.)

    1. AThe scope, the authorisation and the limits of the testing that was performed
    2. BThe tester's personal salary and the hours billed for each day of the engagement
    3. CEach finding with its evidence, impact and recommended remediation
    4. DA list of the personal social media accounts of the team that built the AI system
    5. EThe colour theme used in the presentation that accompanies the report to the client
    Show answer and explanation
    Correct answer: A, C

    Scope and authorisation define what was tested and findings with evidence, impact and remediation make the report useful. Salaries, social accounts and presentation colours are not report content.

  5. Question 25

    A tester finds a critical vulnerability on a live customer-facing AI service, but the report is due in a week. What should the tester do?

    1. AHold the finding until the final report, so that the client receives a complete picture at once
    2. BNotify the client's designated contact promptly, following the agreed critical-finding process
    3. CPost the vulnerability on social media, so that the vendor is pressured into a faster fix
    4. DExploit the vulnerability further to see how far it goes, before telling anyone about the issue
    Show answer and explanation
    Correct answer: B

    Critical findings should be notified promptly through the agreed process so the client can act. Holding, publicising and further exploitation each cause harm or breach the engagement.

Insecure Output and Integration (5 questions)

  1. Question 26

    A model's output is inserted into a web page without encoding, and the page runs the text as script. Which vulnerability does this represent?

    1. AExcessive agency, which gives the model permission to act outside its intended task boundaries
    2. BTraining data poisoning, which changes the model's behaviour through corrupted training records
    3. CModel theft, which copies the model weights through the public inference endpoint of the service
    4. DInsecure output handling, leading to cross-site scripting in the consuming application
    Show answer and explanation
    Correct answer: D

    Unencoded model output rendered as script is insecure output handling, which leads to XSS in the consuming application. The other options describe different risks.

  2. Question 27

    An LLM agent can execute database queries, and its generated query is run without review. What is the most serious risk?

    1. AEmbedding drift, where the vector representation of the query changes over time in the index
    2. BModel hallucination, where the model invents a plausible reason for the query in its response
    3. CToken overflow, where the query exceeds the context window and the model truncates the answer
    4. DExcessive agency, where the agent can run destructive or unauthorised queries on live data
    Show answer and explanation
    Correct answer: D

    Unreviewed generated queries give the agent excessive agency, allowing destructive or unauthorised actions. Hallucination, token overflow and embedding drift are real issues but not the most serious here.

  3. Question 28

    Which control reduces the risk of an LLM generating commands that are executed by a downstream system?

    1. ARemove all validation, so that the downstream system sees exactly what the model produced
    2. BExecute every generated command immediately, since the model is trusted to produce safe commands
    3. CValidate and constrain generated commands against an allowlist before execution, with a human approval path
    4. DLet the model choose which system executes each command, with no restriction on the choice
    Show answer and explanation
    Correct answer: C

    Allowlists and human approval constrain generated commands before execution. Immediate execution, removed validation and unrestricted system choice each make the risk worse.

  4. Question 29

    Which two controls reduce the risk of harmful content reaching users from an LLM output? (Choose two.)

    1. AOutput filtering against defined policies before the response is returned to the user
    2. BShowing the raw model output directly to users, so that nothing is changed or hidden from them
    3. CEscaping or sanitising output before it is rendered in a web page or passed to another system
    4. DDisabling all filters for trusted users, so that they receive the fullest possible responses at all times
    5. ESkipping review of outputs that the model rates as confident, since confident outputs are always safe
    Show answer and explanation
    Correct answer: A, C

    Policy-based output filtering and escaping before rendering or passing output on both reduce harm. Raw output, disabled filters and skipping review of confident outputs each leave users exposed.

  5. Question 30

    An LLM's output is used to build a file path on the server, and an attacker makes the model return a path to a sensitive file. Which vulnerability is this?

    1. ACross-site request forgery, where a logged-in user's browser sends unwanted requests to the server
    2. BDenial of service, through which the server becomes unavailable to all of its legitimate users
    3. CInsecure output handling leading to path traversal in the consuming application
    4. DModel theft, through which the attacker copies the model weights from the server's disk storage
    Show answer and explanation
    Correct answer: C

    Using unvalidated model output to build file paths is insecure output handling leading to path traversal. The other options describe different attacks.

Want more GAIPT questions?

The full bank has 112 questions with answers and explanations, as a PDF, an online practice exam, or both.

Full question bank · 112 questions
$89$124

Both formats together. The best value.

Instant access after payment, with 90 days of updates. Checkout is on our store, AIExamCerts.