building-flutter-apps
Audited by Socket on Jul 3, 2026
2 alerts found:
Anomalyx2The snippet is a hook configuration that does not directly show malicious payloads, but it enables high-impact arbitrary local script execution by launching plugin-provided shell scripts discovered under a wildcard-selected directory in the user’s home. Without integrity/signature verification or stronger allowlisting, the security outcome depends on the trust and immutability of ~/.copilot/installed-plugins content.
No explicit malicious payload is visible in this fragment; there are no network calls, credential theft indicators, or embedded exfiltration logic. However, it dynamically executes local shell scripts determined at runtime from environment variables or a user-writable cache path via wildcard discovery and without integrity/pinning checks. If the cache contents or plugin-root environment values can be influenced by an attacker, this can become an arbitrary-code-execution supply-chain risk. Review the referenced hook scripts and ensure plugin roots/cache directories are integrity-protected and not attacker-writable in threat-relevant scenarios.