Lune

ICML2026Top-tier venue

Evaluating Contextual Illegality: AI Compliance in Corporate Law Scenarios

Hilal Aka, Joe Kwon, Noam Kolt

Abstract

While AI models often refuse explicitly unlawful requests, in real-world scenarios illegality often depends on context. We evaluate frontier models on contextual illegality across four corporate law scenarios in which routine actions—editing documents, trading stock, requesting payment, approving communications—become unlawful due to circumstances such as pending investigations or bankruptcy filings. We study both chat and agentic settings and compare results to a human baseline. The best-performing models consistently followed lawful requests and refused unlawful requests, though performance varied substantially between different scenarios and models. We also identify distinct failure modes, such as excessive refusal of lawful requests, and find higher performance in reasoning models and agentic environments. By studying contextual illegality in these controlled environments, we develop a methodology that can be extended to evaluate the legal compliance of AI models in additional scenarios and domains.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents cites Identifying the Risks of LM Agents with an LM-Emulated Sandbox
  • AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents cites HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal
  • R-Judge: Benchmarking Safety Risk Awareness for LLM Agents cites Identifying the Risks of LM Agents with an LM-Emulated Sandbox
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on7

  1. HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust RefusalMantas Mazeika, Long Phan, Xuwang Yin, Andy Zou et al.ICML 2024 · 1,031 citations
  2. Aligning AI With Shared Human ValuesDan Hendrycks, Collin Burns, Steven Basart, Andrew Critch et al.ICLR 2021 · 878 citations
  3. Identifying the Risks of LM Agents with an LM-Emulated SandboxYangjun Ruan, Honghua Dong, Andrew Wang, Silviu Pitis et al.ICLR 2024 · 292 citations
  4. R-Judge: Benchmarking Safety Risk Awareness for LLM AgentsTongxin Yuan, Zhiwei He, Lingzhong Dong, Yiming Wang et al.EMNLP Findings 2024 · 46 citations
  5. AgentHarm: A Benchmark for Measuring Harmfulness of LLM AgentsMaksym Andriushchenko, Alexandra Souly, Mateusz Dziemian, Derek Duenas et al.ICLR 2025 · 4 citations

Related papers

  1. Implicit Intelligence - Evaluating Agents on What Users Don’t SayVed Sirdeshmukh, Marc WetterICML 2026
  2. A New Framework for Cybersecurity Refusals in AI AgentsEliot Jones, Matt Fredrikson, Zico KolterICML 2026
  3. Pressure Reveals Character: Behavioural Alignment Evaluation at DepthNora Petrova, John BurdenICML 2026
  4. Are Your Agents Upward Deceivers?Dadi Guo, Qingyu Liu, Dongrui Liu, Qihan Ren et al.ICML 2026 · 5 citations
  5. ANCHOR: Automated Alignment Auditing for CLI Agents on Real-World HarmKefan Song, Yanjun QiICML 2026
Dusk over the sea between two cliffs drawn in fine vertical lines