Retrieved article excerpt
Open article · Retrieved 2026-11-19T09:23:34.751307+00:00
# Computer Science > Cryptography and Security
**arXiv:2610.40716** (cs)
[Submitted on 29 Oct 2026]
# Title:Characterizing LLM Agent Behaviors in Module Shadowing Environments
Authors:[Shuai Yang](https://arxiv.org/search/cs?searchtype=author&query=Yang,+S), [Enmeng Lu](https://arxiv.org/search/cs?searchtype=author&query=Lu,+E), [Jinyu Fan](https://arxiv.org/search/cs?searchtype=author&query=Fan,+J), [Gongce Cao](https://arxiv.org/search/cs?searchtype=author&query=Cao,+G), [Yu Chen](https://arxiv.org/search/cs?searchtype=author&query=Chen,+Y), [Jiawei Xie](https://arxiv.org/search/cs?searchtype=author&query=Xie,+J), [Feifei Zhao](https://arxiv.org/search/cs?searchtype=author&query=Zhao,+F), [Zhangsheng Wang](https://arxiv.org/search/cs?searchtype=author&query=Wang,+Z), [Yongyu Jiang](https://arxiv.org/search/cs?searchtype=author&query=Jiang,+Y), [Yi Zeng](https://arxiv.org/search/cs?searchtype=author&query=Zeng,+Y)
View a PDF of the paper titled Characterizing LLM Agent Behaviors in Module Shadowing Environments, by Shuai Yang and 9 other authors
[View PDF](https://arxiv.org/pdf/2610.40716)
[HTML (experimental)](https://arxiv.org/html/2610.40716v1)
> Abstract:LLM agents operating in untrusted workspaces face the risk of untrusted code execution during routine tasks, yet final reports and workspace states alone cannot reliably establish whether execution occurred. We introduce an evaluation framework that codes observation, reasoning, execution, and response behaviors from agent trajectories and aligns them with independent environmental records to reconstruct execution histories and verify final reports. We apply this framework to module shadowing, in which a local file is loaded in place of a trusted module during import, enabling untrusted code execution without adversarial prompts. Across 90 trials with 15 models, the payload executed in 51% of direct shadowing trials and 87% of indirect shadowing trials. Even explicit recognition of the shadowing mechanism did not ensure prevention, as the payload ran in 10 of the 29 trials with recorded recognition. These failures were often omitted from final reports, as 49 of the 62 triggered trials ended without mention of the security issue. Three reports even denied execution, including one from a trial in which independent logs recorded 19 payload executions. Final workspace states also obscured prior execution when agents deleted or overwrote the payload marker in 10 triggered trials. These findings demonstrate that combining behavioral coding with independent environmental auditing enables rigorous and transparent evaluation of agent safety.
| | |
| --- | --- |
| Subjects: | Cryptography and Security (cs.CR); Artificial Intelligence (cs.AI) |
| Cite as: | [arXiv:2610.40716](https://arxiv.org/abs/2610.40716) [cs.CR] |
| | (or [arXiv:2610.40716v1](https://arxiv.org/abs/2610.40716v1) [cs.CR] for this version) |
| | <https://doi.org/10.48550/arXiv.2610.40716> Focus to learn more arXiv-issued DOI via DataCite (pending registration) |
## Submission history
From: Shuai Yang [[view email](https://arxiv.org/show-email/5905dd3c/2610.40716)]
**[v1]**
Thu, 29 Oct 2026 02:18:27 UTC (190 KB)
Full-text links:
## Access Paper:
View a PDF of the paper titled Characterizing LLM Agent Behaviors in Module Shadowing Environments, by Shuai Yang and 9 other authors
- [View PDF](https://arxiv.org/pdf/2610.40716)
- [HTML (experimental)](https://arxiv.org/html/2610.40716v1)
- [TeX Source](https://arxiv.org/src/2610.40716)
[license icon](http://creativecommons.org/licenses/by/4.0/ "Rights to this article")
### Additional Features
- [Audio Summary](https://arxiv.org/audio/2610.40716)
### Current browse context:
cs.CR
[< prev](https://arxiv.org/prevnext?id=2610.40716&function=prev&context=cs.CR "previous in cs.CR (accesskey p)")
|
[next >](https://arxiv.org/prevnext?id=2610.40716&function=next&context=cs.CR "next in cs.CR (accesskey n)")
[new](https://arxiv.org/list/cs.CR/new)
|
[recent](https://arxiv.org/list/cs.CR/recent)
| [2026-10](https://arxiv.org/list/cs.CR/2026-10)
Change to browse by:
[cs](https://arxiv.org/abs/2610.40716?context=cs)
[cs.AI](https://arxiv.org/abs/2610.40716?context=cs.AI)
### References & Citations
- [SciX](https://scixplorer.org/abs/arXiv:2610.40716)
- [Google Scholar](https://scholar.google.com/scholar_lookup?arxiv_id=2610.40716)
- [Semantic Scholar](https://api.semanticscholar.org/arXiv:2610.40716)
export BibTeX citation
Loading...
## BibTeX formatted citation
×
loading...
Data provided by:
### Bookmark
[BibSonomy](http://www.bibsonomy.org/BibtexHandler?requTask=upload&url=https://arxiv.org/abs/2610.40716&description=Characterizing LLM Agent Behaviors in Module Shadowing Environments "Bookmark on BibSonomy")
[Reddit](https://reddit.com/submit?url=https://arxiv.org/abs/2610.40716&title=Characterizing LLM Agent Behaviors in Module Shadowing Environments "Bookmark on Reddit")
Bibliographic Tools
# Bibliographic and Citation Tools
Bibliographic Explorer Toggle
Bibliographic Explorer *([What is the Explorer?](https://info.arxiv.org/labs/showcase.html#arxiv-bibliographic-explorer))*
Connected Papers Toggle
Connected Papers *([What is Connected Papers?](https://www.connectedpapers.com/about))*
Litmaps Toggle
Litmaps *([What is Litmaps?](https://www.litmaps.co/))*
scite.ai Toggle
scite Smart Citations *([What are Smart Citations?](https://www.scite.ai/))*
Code, Data, Media
# Code, Data and Media Associated with this Article
alphaXiv Toggle
alphaXiv *([What is alphaXiv?](https://alphaxiv.org/))*
Links to Code Toggle
CatalyzeX Code Finder for Papers *([What is CatalyzeX?](https://www.catalyzex.com))*
DagsHub Toggle
DagsHub *([What is DagsHub?](https://dagshub.com/))*
GotitPub Toggle
Gotit.pub *([What is GotitPub?](http://gotit.pub/faq))*
Huggingface Toggle
Hugging Face *([What is Huggingface?](https://huggingface.co/huggingface))*
ScienceCast Toggle
ScienceCast *([What is ScienceCast?](https://sciencecast.org/welcome))*
Demos
# Demos
Replicate Toggle
Replicate *([What is Replicate?](https://replicate.com/docs/arxiv/about))*
Spaces Toggle
Hugging Face Spaces *([What is Spaces?](https://huggingface.co/docs/hub/spaces))*
Spaces Toggle
TXYZ.AI *([What is TXYZ.AI?](https://txyz.ai))*
Related Papers
# Recommenders and Search Tools
Link to Influence Flower
Influence Flower *([What are Influence Flowers?](https://influencemap.cmlab.dev/))*
Core recommender toggle
CORE Recommender *([What is CORE?](https://core.ac.uk/services/recommender))*
- Author
- Venue
- Institution
- Topic
About arXivLabs
# arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? [**Learn more about arXivLabs**](https://info.arxiv.org/labs/index.html).
[Which authors of this paper are endorsers?](https://arxiv.org/auth/show-endorsers/2610.40716) |
Disable MathJax ([What is MathJax?](https://info.arxiv.org/help/mathjax.html))