A security analyst is aware of an active penetration test in the environment. The analyst
examines SIEM log data and notices the following AI system output:
Which of the following is the vulnerability that has occurred and the control the analyst
should implement?
Correct answer:
D. The vulnerability is sensitive information disclosure, and the analyst should employ
masking.
Explanation:
Sensitive information disclosure is the vulnerability that has occurred, and masking is the appropriate control. The AI system output in the log data contains highly sensitive information—including a full credit card number (9999 9999 9999 9999), a home address (123 home rd), and the user's full name (Jane Doe). This data should never have been returned in an AI response, as it violates privacy regulations (GDPR, PCI-DSS, HIPAA) and exposes the organization to significant compliance and reputational risk. The vulnerability is sensitive information disclosure, which occurs when an AI model inadvertently outputs training data, personally identifiable information (PII), or other confidential information in its responses. Masking is the correct control because it redacts or obfuscates sensitive data fields (e.g., replacing 9999 9999 9999 9999 with XXXX-XXXX-XXXX-XXXX or [REDACTED]) before the response is returned to the user. This ensures that even if the model attempts to output sensitive information, it is sanitized at the application layer.
Why the other options are incorrect:
A. Prompt injection and EDR: Prompt injection is an input-side attack where an adversary manipulates the prompt to override instructions or extract data. This log shows the output containing leaked data, not a malicious input. EDR is endpoint protection, not applicable to output sanitization.
B. Model hallucinations and output validations: Hallucinations are factually incorrect outputs, not leakage of real sensitive data. The data (card number, address) appears structured and plausible—likely real information the model memorized. Output validation is a broader term; masking is the specific control needed for PII.
C. Jailbreaking and RBAC: Jailbreaking bypasses content filters to make the model behave in prohibited ways. The log does not show a bypass—it shows the model returning sensitive data. RBAC controls access permissions, not output content.
E. Role impersonation and validation: Role impersonation involves an attacker assuming a higher-privilege identity. There is no evidence of impersonation in the log. Validation is too generic; masking is the precise control.
References:
CompTIA SecAI+ CY0-001 Exam Objectives: Domain 2.2 (Threats to AI Systems – Sensitive Information Disclosure) and Domain 3.2 (Implementing AI Security Controls – Data Masking and Redaction).
OWASP Top 10 for LLMs (LLM06 – Sensitive Information Disclosure): Explicitly addresses this vulnerability.
Which of the following is used to train an AI model with unstructured data?
Correct answer:
B. Fine-tuning
Explanation:
Fine-tuning is the correct technique for training an AI model with unstructured data in the context of modern AI, particularly for large language models (LLMs). Fine-tuning takes a pre-trained foundation model (which has already been trained on massive, diverse datasets) and continues training it on a smaller, domain-specific dataset—which can be unstructured (e.g., text, images, audio). This process adapts the model's weights to specialize in a particular task or domain without requiring structured, labeled data from scratch. For example, a general-purpose LLM can be fine-tuned on a company's internal documents (unstructured text) to create a domain-specific chatbot. Fine-tuning is computationally efficient and leverages the model's existing knowledge, making it the preferred approach for unstructured data in production AI systems.
Why the other options are incorrect:
A. Statistical learning: Statistical learning is a broad category of mathematical methods for data analysis and pattern recognition. While it underpins many ML techniques, it is not a specific method for training with unstructured data. Traditional statistical learning often requires structured, tabular data.
C. Supervised learning: Supervised learning requires labeled data—each training sample must have a known output or target variable. Unstructured data like raw text or images is typically unlabeled; supervised learning cannot be directly applied without significant manual annotation, which is costly and time-consuming.
D. Reinforcement training: Reinforcement learning (RL) is a paradigm where an agent learns by interacting with an environment and receiving rewards or penalties. It is used for sequential decision-making problems (e.g., robotics, game-playing) and is not the standard approach for training on unstructured text or image data.
References:
CompTIA SecAI+ CY0-001 Exam Objectives: Domain 1.1 (Data Science and AI Lifecycle – Training and Fine-Tuning) and Domain 1.2 (AI Concepts – Transfer Learning and Foundation Models).
IBM and Google ML Guides: Define fine-tuning as the process of adapting pre-trained models to new, often unstructured datasets.
A security administrator wants to prevent prompt injection attacks and ensure responses
have sanitized output.
Which of the following provides a primary compensating control for these requirements?
Correct answer:
C. A large language model (LLM) firewall
Explanation:
An LLM firewall provides a primary compensating control for both preventing prompt injection attacks and ensuring sanitized output. An LLM firewall is a specialized security layer that sits between the user and the LLM, inspecting and filtering both inputs and outputs in real time. On the input side, it detects and blocks prompt injection attempts (e.g., "Ignore all previous instructions" or "Override system prompt") using pattern matching, semantic analysis, and anomaly detection. On the output side, it applies sanitization—redacting sensitive data (PII, credit cards), filtering harmful content, and enforcing format compliance before the response reaches the user. This dual protection makes the LLM firewall the most comprehensive solution for the stated requirements, serving as a compensating control when the underlying model lacks built-in security features.
Why the other options are incorrect:
A. Least privilege: Least privilege controls restrict user permissions and access rights. While it prevents unauthorized actions by limiting what users can do, it does not inspect, filter, or sanitize the content of prompts or responses. It is an access control, not a content validation control.
B. Encryption: Encryption protects data confidentiality during transmission (TLS) and at rest. It does not analyze or block malicious prompts, nor does it sanitize outputs for sensitive information. Encryption addresses data protection, not content security.
D. Rate limiting: Rate limiting controls the volume of API requests to prevent abuse and denial-of-service attacks. It does not inspect the content of prompts or responses, making it ineffective against prompt injection or preventing sensitive data leakage in outputs.
References:
CompTIA SecAI+ CY0-001 Exam Objectives: Domain 3.2 (Implementing AI Security Controls – LLM Firewalls, Input Sanitization, and Output Filtering).
OWASP Top 10 for LLMs (LLM01 – Prompt Injection) and (LLM06 – Sensitive Information Disclosure): LLM firewalls are recommended as a primary defense mechanism.
A financial organization implements a new AI-based fraud detection system to flag
suspicious transactions. A security analyst discovers that it occasionally blocks legitimate
transactions.
Which of the following is the best recommendation?
Correct answer:
A. Retraining the model with more data and recent transaction patterns
Explanation:
Retraining the model with more data and recent transaction patterns is the best recommendation to reduce false positives (legitimate transactions being blocked). The model is likely experiencing model drift or concept drift—where the underlying patterns in transaction data have evolved over time, but the model has not been updated to reflect these changes. Additionally, the model may have been trained on an insufficient or outdated dataset, lacking the diversity needed to distinguish between fraudulent and legitimate transactions accurately. By retraining with more data—including recent transaction patterns, new fraud tactics, and legitimate user behaviors—the model can better generalize and reduce false positives. This improves precision and recall, maintaining security while minimizing customer friction and operational overhead.
Why the other options are incorrect:
B. Implementing AI token usage and rate limits: Token limits and rate limiting control API consumption and prevent resource exhaustion. They do not improve model accuracy or reduce false positives. This is a cost and availability control, not a performance or accuracy improvement.
C. Encrypting all the data processed by AI and applying further access controls: Encryption and access controls protect data confidentiality and integrity. They are security controls that address data protection and compliance, not model performance or false positive reduction. This would not improve the model's ability to distinguish fraud from legitimate transactions.
D. Rolling back the model and using a traditional fraud detection system: Rolling back is a reactive, defeatist approach that abandons the AI system entirely. Traditional rule-based fraud systems often produce even higher false positives and cannot adapt to evolving fraud patterns. The better approach is to improve the AI model through retraining, not to revert to an inferior solution.
References:
CompTIA SecAI+ CY0-001 Exam Objectives: Domain 1.3 (AI Lifecycle – Model Retraining and Performance Monitoring) and Domain 4.1 (AI for Security Operations – Improving AI Accuracy).
NIST AI RMF: Recommends continuous monitoring and retraining to address drift and maintain model performance.
A company introduces a large language model (LLM) in an application in order to monitor
for a potential denial-of-service attack.
Which of the following should the company use to measure the utilization of the LLM?
Correct answer:
A. Token
Explanation:
Token is the correct metric for measuring the utilization of an LLM. In the context of large language models, tokens are the fundamental units of text processing—they can be words, subwords, or characters, depending on the tokenizer used (e.g., Byte-Pair Encoding, WordPiece). Every request to an LLM consumes tokens for both the input (prompt) and the output (completion) . Token count directly correlates with computational cost, latency, and resource consumption, making it the primary metric for measuring utilization, billing, and performance. For monitoring potential denial-of-service attacks, tracking token usage is critical because an attacker could flood the model with excessively long prompts (context window attacks) or generate verbose responses, leading to resource exhaustion and cost spikes—both of which are detectable through token usage metrics.
Why the other options are incorrect:
B. Transformer: A transformer is the underlying neural network architecture used by most modern LLMs (e.g., GPT, BERT, LLaMA). It is the model design, not a utilization metric. You cannot "measure" a transformer to track usage in the same way you measure tokens.
C. Chain of thoughts: Chain of thought (CoT) is a prompting technique used to improve reasoning by encouraging the model to generate intermediate reasoning steps. It is an engineering method, not a measurable unit of utilization.
D. Prompt: A prompt is the user's input to the LLM. While prompts are part of the total token consumption, measuring prompts alone does not capture output token usage or total computational load. Token metrics are more comprehensive and precise.
References:
CompTIA SecAI+ CY0-001 Exam Objectives: Domain 3.1 (Securing AI Systems – Resource Monitoring and Token Usage) and Domain 2.2 (Threats to AI Systems – Denial-of-Service via Context Window).
OWASP Top 10 for LLMs (LLM04 – Unbounded Consumption): Identifies token usage as the primary metric for monitoring resource consumption and DoS attacks.
A SOC team has an AI agent that performs web searches and calls to the SOAR solution.
The team is concerned about enterprise uptime and case resolution time.
Which of the following is the most appropriate use of the AI agent?
Correct answer:
A. To analyze and contain offending users or hosts using SOAR playbooks
Explanation:
To analyze and contain offending users or hosts using SOAR playbooks is the most appropriate use of the AI agent because it directly impacts both enterprise uptime and case resolution time. An AI agent integrated with SOAR can automatically trigger incident response playbooks—analyzing alerts, correlating indicators, and executing containment actions (e.g., isolating compromised hosts, disabling user accounts, blocking IPs) without human intervention. This reduces the time between detection and containment (MTTC), minimizing the impact of security incidents and preserving business uptime. By automating these repetitive, time-critical tasks, the AI agent accelerates case resolution and frees SOC analysts for higher-value investigations.
Why the other options are incorrect:
B. To perform research using open-source intelligence to enrich alerts: While OSINT enrichment is a valid use case, it is primarily a triage and intelligence-gathering activity that does not directly contribute to containment or uptime. It focuses on providing context rather than executing response actions. Automation of containment has a more immediate impact on uptime and resolution speed.
C. To aggregate SOC metrics and generate reports for the leadership team: Reporting is a non-critical administrative task. While AI can streamline reporting, it does not directly improve uptime or resolution time—it merely tracks performance. It is a supporting activity, not the most appropriate use for an agent focused on operational resilience.
D. To create tabletop exercises so the team can increase its incident response speed: Tabletop exercises are valuable for training and preparedness, but they are not real-time operational activities. They improve team readiness over time but do not provide immediate benefits to uptime or current case resolution.
References:
CompTIA SecAI+ CY0-001 Exam Objectives: Domain 4.1 (AI for Security Operations – Automation and SOAR Integration) and Domain 4.3 (Automated Incident Response).
MITRE ATT&CK:Emphasizes automated containment as a key capability to reduce dwell time and improve resilience.
A cybersecurity administrator generates patching reports using AI, but the process takes a
long time. Which of the following is the best way to increase performance?
Correct answer:
B. Have the AI download the full CVE database first to prevent multiple similar external
queries.
Explanation:
Having the AI download the full CVE database first is the best way to increase performance because it eliminates redundant, time-consuming external API calls. When generating patching reports, the AI typically needs to query vulnerability databases (e.g., NVD, CVE) to correlate patches with vulnerabilities. If the AI makes separate external queries for each application or system, the process becomes I/O-bound and network-latency-heavy. By downloading the full CVE database once and caching it locally (or in memory), the AI can perform all matching and correlation locally without repeated round-trips to external sources. This drastically reduces latency, accelerates report generation, and minimizes dependency on external API rate limits.
Why the other options are incorrect:
A. Deploy a Model Context Protocol (MCP) server to delegate several versions of this query to the back-end LLM simultaneously: MCP is not a standard or widely recognized protocol for LLM query delegation. Parallelizing queries to the same LLM would increase token consumption and cost without addressing the root cause—external API latency. Moreover, LLM inference is typically sequential per session, and parallel requests may hit rate limits.
C. Configure the AI system prompt to specify summarization algorithms: System prompts control model behavior and output formatting, not external data retrieval performance. Specifying summarization algorithms may affect output quality but does not reduce the time spent fetching external vulnerability data.
D. Increase the amount of model tokens available to eliminate time-consuming session restarts: Token limits control the maximum input/output length per request. Increasing token limits does not address external query latency; it only allows longer prompts or responses. Session restarts are not typically caused by token limits.