hydra-gate-orphan-auth

Detect orphaned authorization methods in PHP service and controller classes.

1|1|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/ConductionNL/shillinq --skill hydra-gate-orphan-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hydra-gate-orphan-auth
Source: https://github.com/ConductionNL/shillinq/tree/main/.claude/skills/hydra-gate-orphan-auth
Command: npx skills add https://github.com/ConductionNL/shillinq --skill hydra-gate-orphan-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill identifies security vulnerabilities caused by implemented but uncalled authorization methods, which can lead to bypassed security checks that appear functional during code reviews.

Core Features & Use Cases

  • Orphaned Auth Detection: Scans public service and controller methods for guard-rail patterns like is, requires, validate, or authorize that have zero external callers.
  • Security Hardening: Prevents OWASP A01:2021 (Broken Access Control) by ensuring that implemented security logic is actually integrated into the application flow.
  • Use Case: Use this tool during CI/CD pipelines to automatically flag methods like isTransitionAllowed that are fully defined but never invoked by the state-change caller, preventing accidental security gaps.

Quick Start

Run the hydra-gate-orphan-auth skill to scan the lib directory for any defined authorization methods that are not currently being called by the application.

Frequently Asked Questions about hydra-gate-orphan-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find uncalled authorization methods in PHP codebases?

To find uncalled authorization methods in PHP codebases, run a static analysis scan that cross-references public method signatures against project-wide call patterns to detect security guards that are implemented but never invoked.

What is orphaned authorization code and how does it cause broken access control?

Orphaned authorization code consists of guard-rail methods like is, requires, validate, or authorize that are fully defined but never invoked by callers, causing OWASP A01:2021 Broken Access Control vulnerabilities when security checks are bypassed.

How do I detect dead authorization code during CI/CD pipelines?

You can detect dead authorization code during CI/CD pipelines by integrating static analysis that scans service and controller classes for guard-rail patterns with zero external callers, automatically flagging methods like isTransitionAllowed before deployment.

Does static analysis work for finding unused PHP validation logic in service classes?

Static analysis works for finding unused PHP validation logic by analyzing public method definitions in service and controller classes and cross-referencing them with project-wide call sites to ensure all implemented security guards are actively integrated.

What's the best way to prevent security gaps from unused PHP controller methods?

The best way to prevent security gaps from unused PHP controller methods is scanning for orphaned authorization patterns and verifying that every implemented guard-rail method has active external callers within the application flow.

Why does implemented security logic fail to protect my PHP application?

Implemented security logic fails to protect your PHP application when authorization methods exist but are never invoked by state-change callers, meaning functional-looking security checks are bypassed during actual application execution.