laravel-permission
Warn
Audited by Gen Agent Trust Hub on Oct 26, 2026
Risk Level: MEDIUMPRIVILEGE_ESCALATIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [PRIVILEGE_ESCALATION]: The deployment script template in
references/templates/DeployScript.sh.mdincludes the use ofsudoto reload the PHP-FPM service (sudo -S service $FORGE_PHP_FPM reload), which represents a request for elevated system permissions. - [COMMAND_EXECUTION]: The custom Artisan command template
references/templates/SetupPermissions.php.mdcontains logic to truncate database tables. If the--freshoption is invoked, the script executestruncate()operations onmodel_has_permissions,model_has_roles, androle_has_permissions, which are destructive operations that could lead to data loss if mismanaged. - [EXTERNAL_DOWNLOADS]: The skill's deployment and CI/CD templates reference external resources and packages.
- The GitHub Actions workflow in
references/templates/DeployScript.sh.mdfetches theshivammathur/setup-php@v2action, a well-known community service for setting up PHP environments. - The
deploy.shscript executescomposer installandgit fetch, which are standard operations for fetching external dependencies and code updates. - [INDIRECT_PROMPT_INJECTION]: The skill defines a significant attack surface for indirect injection by processing role and permission names from various data sources.
- Ingestion points: User-defined role and permission names in
SetupPermissions.php.md,ApiPermissionSeeder.php.md, and route parameters inTeamMiddleware.php.md. - Boundary markers: None explicitly implemented in the logic that processes these identifiers.
- Capability inventory: The skill has the capability to modify database state, assign administrative privileges (Super-Admin), and reload system services.
- Sanitization: The implementation relies on Laravel's Eloquent ORM and built-in validation, but the interpretation of permission strings is a natural language processing task for the agent.
Audit Metadata