Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
EC-Council logo

EC-CouncilCertified Offensive AI Security Professional

Domain 6Objective 1

Authentication Weaknesses in AI Model APIs COASP Practice Questions (Page 6)

Part of the AI Infrastructure and Supply Chain Attacks domain, which makes up ~13% of our current practice bank.

48questions here
10free pages
8concepts

Questions 26–30

  1. 26application · medium

    A data science team uses an AI model API that issues API keys with a 'model:write' scope to all users. A junior analyst only needs to run inference, but the key also allows modifying the model. Which action should the team take to prevent privilege escalation?

    Select an answer first
  2. 27expert · hard

    A large enterprise exposes an AI model API for document classification. The API uses OAuth 2.0 with the client credentials grant. The API gateway validates the JWT signature using a public key from a well-known URL. A security researcher finds that the gateway does not validate the 'aud' (audience) claim. An attacker creates a client application with a different audience and obtains a token for that client. The attacker then uses that token to access the document classification API. The gateway accepts the token because it only checks the signature. Which combination of controls would best mitigate this vulnerability?

    Select an answer first
  3. 28application · medium

    A security analyst is reviewing the authentication configuration of an AI model API that uses JWT tokens. The analyst discovers that the API accepts tokens signed with the 'none' algorithm. An attacker crafts a token with 'alg': 'none' and an arbitrary user ID, gaining access as an admin. Which configuration change should be made to prevent this attack?

    Select an answer first
  4. 29application · medium

    A data science team deploys an internal AI model API for sentiment analysis. The API uses basic authentication with a shared account. The team stores the credentials in a plaintext configuration file on a shared network drive. An intern discovers the file and uses the credentials to access the API, incurring significant compute costs. Which combination of controls would best prevent this from recurring?

    Select an answer first
  5. 30application · medium

    A company provides an AI model API for natural language processing. The API uses OAuth 2.0 with password grant for client authentication. A security audit reveals that the API does not enforce multi-factor authentication (MFA) for user accounts. An attacker obtains a user's password through a phishing campaign and accesses the API, incurring costs and potentially exfiltrating data. Which control would most directly mitigate this risk?

    Select an answer first
Finished these 5 questions?

Review the revealed explanations, or continue through the curriculum.

Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by EC-Council. “COASP” is a trademark of its owner, used for identification only.