T08 · Insecure Dependencies
- Location
scripts/_common.py:23- Finding
Automatic Installation of Unpinned Third-Party Dependencies
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill mostly does what it says, but it automatically installs unpinned Python packages while also handling Microsoft calendar-write access and OAuth tokens.
Review this before installing. It will require Microsoft delegated calendar permissions and will store OAuth tokens locally. Install the Python dependencies yourself in an isolated environment with pinned versions, and consider reducing Microsoft Graph scopes to the minimum needed before use. Treat --hard-delete as a permanent calendar deletion action.
scripts/_common.py:23Automatic Installation of Unpinned Third-Party Dependencies
scripts/_common.py:11OAuth Token Requests Permissions Beyond Implemented Functionality
The code executes a shell command to install packages automatically when imports fail. Even though the command string is constant, invoking pip from application logic can trigger unreviewed code execution from package installation hooks, alter the local environment, and perform networked changes without user consent.
import msal # noqa: F401
import requests # noqa: F401
except ImportError:
os.system("python3 -m pip install --user msal requests python-dateutil tzlocal")
def build_msal_app():
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
Skill: ms-teams-meetings
Overview
- Use this skill to create and manage Microsoft Teams meetings via Microsoft Graph API.
- Capabilities:
- Create Teams online meetings and send calendar invites
- List upcoming Teams meetings
A common support module should not silently gain the capability to modify the host by installing software at runtime. In this context, the file also handles Microsoft auth tokens, so unexpected package installation expands trust boundaries and makes compromise of the local Python/package environment more dangerous.
The helper runs a shell-based package installation automatically and without any warning or confirmation. Silent environment changes are risky because they hide network access and code installation from the user, and can be abused through dependency confusion, compromised indexes, or malicious package lifecycle scripts.
This code performs a destructive calendar deletion when the --hard-delete flag is used, but it provides no confirmation prompt and no explicit warning that the action is irreversible beyond the flag name itself. For a safety-critical delete operation, the file should include a clearer disclosure or confirmation before removing the event.
No suspicious patterns detected.