SY0-801 practice question · Threats, Vulnerabilities, and Attacks
Infostealer malware on a developer's laptop copies the long-lived access token stored in the config file of an AI coding…
Infostealer malware on a developer's laptop copies the long-lived access token stored in the config file of an AI coding assistant. The attacker then reads the developer's chat history and connected code repositories from another country without being asked for a password or MFA. Which attack occurred?
- AIndirect prompt injection
- BSession hijacking
- CJailbreaking
- DModel manipulation
Show the answer and explanation
Correct answer: B) Session hijacking
Tokens for AI assistants and agents are session credentials; stealing one lets an attacker act as the user without logging in.
Why each option is right or wrong
- A) Incorrect. No instructions were hidden in content for the model to read. The attacker reused a stolen credential.
- B) Correct. Stealing and reusing a valid session or access token to impersonate the user, bypassing login and MFA, is session hijacking.
- C) Incorrect. Jailbreaking makes a model ignore safety rules. The attacker simply acted as the developer.
- D) Incorrect. The model was not altered. The attacker gained access to the user's account through the token.
- Exam domain
- Threats, Vulnerabilities, and Attacks · 24% of SY0-801
- Question type
- Multiple choice (one answer)
Related SY0-801 questions
- A hospital copies the CVSS base score for a flaw in its patient records server from a public database.Threats, Vulnerabilities, and Attacks
- A company's threat intelligence platform must automatically poll a partner's server over HTTPS every hour and download…Threats, Vulnerabilities, and Attacks
- Before an authorized penetration test, the tester reads the target's job postings, which name its firewall brand and…Threats, Vulnerabilities, and Attacks
- A threat intelligence team has gathered raw indicators from five feeds that use different formats.Threats, Vulnerabilities, and Attacks
All 77 free SY0-801 questions by domain · 15 sample questions on one page
Practise the full SY0-801 exam
This question is one of a small free sample from the CertRidge SY0-801 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.
Original question written from the official exam guide. Not affiliated with CompTIA; never copied from the real exam.
Worth reading: Security+ passing score (750/900), 750 on a 100–900 scale for SY0-701, SY0-801 and the retired SY0-601, and why it isn't 83%.