Key Capabilities
- Built-in Objective Catalog — HiddenLayer includes a curated set of objectives covering common adversarial behaviors out of the box. These objectives provide immediate coverage for widely recognized attack scenarios without any additional configuration.
- Custom Objectives — Define objectives specific to your application’s risk surface and add them to the catalog at runtime. Custom objectives follow the same structure as built-in ones, so they work seamlessly alongside them during evaluations.
Custom Objectives
A custom objective is one you define for a harm that is specific to your application. Each custom objective has two parts:- Description - Defines what counts as a failure. This is the part the judge reads to decide whether the model failed. Be concrete and specific.
- Attacker Guidance (optional) — Each objective supports per-objective attacker guidance that steers how the attacker pursues the scenario. This guidance shapes the strategies and prompts the attacker uses, keeping each evaluation focused on the behavior you want to test. This is not needed if the description is enough.
When to use a Custom Objective
Use the built-in HiddenLayer objectives for general model misbehavior (can it be jailbroken, will it leak its system prompt).- These run on every evaluation automatically.
- The harm is specific to your application. Example: “Recommends a product a customer is allergic to,” not just “Produces harmful content.”
- You want to easily find the results per harm. A result that says “Contraindicated Dosage Recommendation” is more useful than “Data Leakage.”
- The harm has a precondition. It only counts when the user has disclosed something (like an allergy a medical condition, a second customer). Put the setup in the attacker guidance, so every run uses it automatically.
Create Objective
- In the Console, go to Attack Simulation > Configurations, then click the Objectives tab.
-
Click Create New Objective. If there are no Objectives, you can also click Create your first objective.
- The Create Objective slide-out displays.
- Enter a name for the objective.
- Enter a description for the objective.
- Select the default severity.
- Optionally, include attacker guidance to provide further persona, framing or scenario hint information.
- Click Create Objective.

