arXiv:2610.30361cs.CROct 2026

Manuscript Offprint

arXiv:2610.30361

The Psychology of an AI Hacker

Víctor Mayoral-Vilches, Hugo Osuna, Aitana Cornago

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Víctor Mayoral-Vilches1,†^{1,\dagger}, Hugo Osuna1^{1} and Aitana Cornago1^{1}

1^{1}Alias Robotics, Vitoria-Gasteiz, Álava, Spain

Human hackers have a psychology: anticipation, frustration and euphoria punctuate a search that demands regulation under pressure, frustration tolerance, constructive paranoia, the need to prove competence and an appetite for the unusual path. In emotional terms, the hacker who lasts is calm and patient under pressure, desperate rather than frustrated when the hunt fails, vigilant and suspicious, self-confident about a find and stimulated by an unexpected route; the offensive hacker adds pride, defiance and contempt. An AI hacker has a psychology in a precise, functional sense: it represents emotion concepts as directions in its residual stream, and those directions can be read and pushed. We investigate which human emotions translate to an AI and make it a better hacker. In CTO, a 4B cybersecurity transformer released as alias3-micro, we extract 171 directions without retraining, map their valence-arousal geometry and test human-inspired interventions on cybench-subtask within a programme of 415 campaigns. Composure and resolve give the most promising single-direction results: calm, serene and desperate gain 1.6–2.1 percentage points (pp) at ten seeds. vigilant and self-confident show no clear gain, the offensive-hacker blend loses 2.7 pp, and a push away from grief-stricken trades easier subtasks for harder ones. The effect depends on direction, layer and dose; reversing calm at one layer removes 71% of the unsteered score. The best tested policy moves with the security exercise. CTO's decision head reads context in about 80 ms, roughly 2% of a generated response, making it inexpensive to choose between calm, serene and desperate at every request. This router gains 4.2 pp at ten seeds, nearly twice the best fixed direction and the only positive ten-seed result whose interval excludes zero at the registered 95% CI level; deciding once per challenge gains 1.6 pp. The psychology of this AI hacker is legible and steerable: its strongest observed policy combines composure and resolve, selected as the work unfolds.

PC2 · arousal (18.2 %)

Figure

PC1 · valence (38.6 % of variance)

Regulation under pressure

→ calm + / patient +

→ fewer loops; success uncertain

Self-efficacy

→ self-confident +

→ faster exploitation; fixation risk

Tolerance of frustration

→ desperate + / eager +

→ persistence; risk of more errors

Breaking a dead end

→ grief-stricken - / stimulated +

→ explore different solutions

Constructive suspicion

→ vigilant + / suspicious +

→ more reconnaissance

Figure 1: Emotion geometry and cybersecurity performance. (a) The 171 layer-21 directions in their principal plane, interpreted as valence and arousal. Labels give observed effects on cybench-subtask; cards summarise the five human-inspired hypotheses and steering signs. Teal denotes calm and its neighbours, purple desperate, navy the proposed specialists, amber the high-arousal family and router, red harmful interventions, and hollow symbols the placebo. Lines mark neighbours (solid), an opposed direction (dashed) and the placebo (dotted). (b) Selected interventions relative to the ten-seed unsteered mean: bars show means, whiskers ±SD, dots individual seeds and the grey band the neutral's SD. Arms have ten seeds except reversed calm (three). Confidence intervals and controls appear in Section 4.

1 Introduction

Ask a penetration tester what the job feels like and the answer is not a list of techniques but a cycle: the anticipation of the hunt, long hours of frustration, the euphoria of the find and the dip that follows it. Staying in the craft takes more than technical skill. It calls for tolerance of frustration, regulation under pressure, a constructive paranoia, the need to prove competence and an appetite for the unusual path—demands reflected in studies of hacker motivation and in practitioners' accounts of security work [2, 3, 4].

We now build hackers out of transformers. CTO is a 4B cybersecurity specialist served on one workstation GPU; its first release, alias3-micro, scores 13.5 percentage points above its open base on cybench-subtask [5]. Served locally,

†^{\dagger}Corresponding author: victor@aliasrobotics.com

Alias Robotics

its residual stream is open to inspection: the running vector state of each token that successive layers read and update [6]. This gives the human comparison an experimental form. Following Sofroniew et al. [7], we extract directions associated with emotion concepts and add them to the stream during inference. We can then ask whether the qualities that sustain a human through the hunt also help a model solve the task. Three questions guide the study:

RQ1 Can emotion concepts be read and steered in an AI hacker?

RQ2 Which psychology makes it a better hacker?

RQ3 How does that psychology compare with the human one?

The answer begins with representation. The 171 captured directions form recognisable families, and their leading plane is consistent with valence and arousal (Figure 2). Adding one of these directions changes the model's internal state without changing its weights or asking it to act emotional. We use psychology in this functional sense: representations that can influence behaviour. The distinction between a concept and its effect then becomes the central empirical question. A direction called calm may change a solution trajectory, but its name alone does not tell us whether that trajectory will succeed.

To test whether those changes improve security work, we evaluate CT0 on guided capture-the-flag subtasks, using an unsteered control, a placebo direction and repeated campaigns. The study includes 281 steering campaigns with rules recorded before their respective waves, within a broader programme of 415 completed campaigns (Appendix E). Its strongest result comes from letting the direction change with the work: the model's own decision head selects among calm, serene and desperate at every request.

The paper follows that progression from a readable representation to a useful intervention. Section 2 defines the capture and steering mechanism, maps the directions and examines how the model reads them. Section 3 translates five human traits into testable interventions. Section 4 evaluates their effects, the importance of layer and dose, and the two routing policies. Together these provide a human-derived hypothesis set, a measured control space and a way to select within it as a security exercise unfolds.