spfx-auth
Warn
Audited by Gen Agent Trust Hub on Jun 24, 2026
Risk Level: MEDIUMPROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [PROMPT_INJECTION]: The skill defines a self-modification loop referred to as 'Self-Repair Behavior' that allows the agent to rewrite the skill's source content.
- Evidence: The section 'Self-Repair Behavior' instructs the agent to 'Locate the matching command snippet in this skill file', 'Apply only minimal, reversible edits', and 'persist the edit and add a one-line changelog entry'.
- Risk: This meta-instruction overrides the static nature of the skill, allowing the agent to alter its behavior permanently based on runtime observations, which could be manipulated.
- [COMMAND_EXECUTION]: The skill uses local CLI tools to manage authentication states.
- Evidence: Execution of
m365 status,m365 login, andm365 logoutcommands. - Context: These are standard operations for the Microsoft 365 CLI, but they serve as the data source for the self-repair logic.
- [INDIRECT_PROMPT_INJECTION]: The self-repair logic creates an attack surface where external command output can influence the skill's persistent code.
- Ingestion points: Command output from
m365 statusandm365 login(SKILL.md). - Boundary markers: Absent; the agent is instructed to capture 'full failing command and its output' without delimiters.
- Capability inventory: Subprocess execution of
m365and file-write access toSKILL.md. - Sanitization: Absent; the skill relies on the agent's internal logic to validate changes using
m365 help, which could be bypassed by clever command output.
Audit Metadata