Back to skill

Security audit

Dotnet Dump Perf Analyzer

Security checks for vulnerabilities and agentic risk

Overview

This skill is a .NET performance diagnostics guide with disclosed, user-run commands and no hidden persistence or unrelated data access.

Before using it on production systems, remember that process dumps and traces may contain sensitive application data. Run the commands only against processes you own or administer, review generated dump/CSV/report files before sharing them, and install the referenced diagnostic tools from their official sources.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (2)

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · SKILL.md (reported line 442)May include surrounding context.

md
| Problem | Cause | Fix |
|---------|-------|-----|
| `dotnet-counters ps` can't find the process | Process is 32-bit or running on a different Runtime | Check .NET Runtime version, use `dotnet-counters ps -v` for details |
| dotnet-trace fails on Linux | Missing `lttng` or insufficient permissions | Use `sudo dotnet-trace collect ...` or install `lttng` |
| `.loadby sos clr` fails in WinDbg | 32/64-bit mismatch or Runtime version issue | Use `.load <full-path>\sos.dll`, confirm correct bitness |
| Dump file is huge (tens of GB) | Captured full dump from a large-memory app | Use `dotnet-dump collect -m 1` to limit to heap-only dump |
| CSV columns are misaligned | `relog.exe` vs `Export-Counter` — the latter omits quotes around values | Always use relog.exe for CSV export |

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
81% confidence
Finding

At L352, the text tells users to consult 'the Chinese SKILL.md' for the complete script. This creates a language-specific access requirement for critical instructions without stating an alternative or offering user choice, which can conflict with language/locale policy expectations.

Content

No source excerpt is available for this finding.