# Agent to assess security issues in context, and auto-fix

**URL:** <https://forum.cursor.com/t/agent-to-assess-security-issues-in-context-and-auto-fix/98456>\
**Category:** Feature Requests\
**Created:** [May 29, 2025, 8:04pm UTC](https://forum.cursor.com/t/agent-to-assess-security-issues-in-context-and-auto-fix/98456 "2025-05-29T20:04:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AuspiciousSolitude](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@AuspiciousSolitude](https://forum.cursor.com/u/AuspiciousSolitude)\
**Post date:** [May 29, 2025, 8:04pm UTC](https://forum.cursor.com/t/agent-to-assess-security-issues-in-context-and-auto-fix/98456/1 "2025-05-29T20:04:41Z")

</div>

Can you please provide a background agent that assesses security issues in context, and auto-fixes them?

**Problem:**  
When I run npm audit, it shows me security risks, but I have these problems with it:

- poorly formatted
- to get extra context I need to go to a website on the given issue
- while an issue may be marked ‘critical’, it may not be to me (for example if the criticality doesn’t apply if you host on AWS)

**Solution:**  
Cursor background agent.  
Every week it runs my .mdc rule which says something like:

- Run npm audit
- Investigate each issue in the context of codebase and implementation
- Where you believe issues should be fixed, create a PR for each one, starting with highest priority.

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [May 29, 2025, 8:07pm UTC](https://forum.cursor.com/t/agent-to-assess-security-issues-in-context-and-auto-fix/98456/2 "2025-05-29T20:07:56Z")

</div>

Is that not already available using Background Agents?  
You can assign it the task as you described.

One thing will be hard for AI to know, what is critical for you and what isnt unless you specify the rules.

---

<div class="post-metadata">

**Author:** ![AuspiciousSolitude](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@AuspiciousSolitude](https://forum.cursor.com/u/AuspiciousSolitude)\
**Post date:** [May 29, 2025, 8:09pm UTC](https://forum.cursor.com/t/agent-to-assess-security-issues-in-context-and-auto-fix/98456/3 "2025-05-29T20:09:33Z")

</div>

Ah, that’s great if it will support it then.

I haven’t used it because it hasn’t been security audited itself yet.

But I will when it has.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [June 18, 2026, 10:44am UTC](https://forum.cursor.com/t/agent-to-assess-security-issues-in-context-and-auto-fix/98456/4 "2026-06-18T10:44:42Z")

</div>

Closed on June 18, 2026, 10:44am UTC


