T09 · Insecure Skill Coding Practices
- Location
SKILL.md:94- Finding
Reversed sprinkler-dependent egress capacity factors can understate required exit width
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 94–95
Vulnerability Type: Safety-critical calculation logic error
Risk Level: Highmarkdown - Stairways: **0.3 in/occupant** (sprinklered) or **0.2 in/occupant** (unsprinklered, for capacity reduction allowance). - All other egress components (doors, corridors, ramps): **0.2 in/occupant** (sprinklered) or **0.15 in/occupant** (unsprinklered).Technical Analysis
The instructions reverse the conditions under which the reduced IBC egress-capacity factors may be applied. The baseline factors under IBC §1005.3 are 0.3 inch per occupant for stairways and 0.2 inch per occupant for other egress components. The reduced factors of 0.2 and 0.15 inch per occupant are conditional allowances for qualifying sprinklered buildings with the required emergency voice/alarm communication coverage; they are not allowances for unsprinklered buildings.
Because the skill explicitly directs the agent to use the reduced factors for an unsprinklered building, generated exit-capacity calculations can systematically understate required widths. This is a safety-critical insecure configuration and validation flaw in the skill instructions.
Attack Path
- A user supplies project data identifying a building as unsprinklered.
- The agent follows
SKILL.mdand applies 0.2 inch per occupant to stairs and 0.15 inch per occupant to doors, corridors, or ramps. - The calculated minimum egress widths are lower than those obtained from the applicable baseline factors.
- The resulting exit-capacity matrix may mark an undersized egress component as compliant.
- If the draft is relied upon without independent correction by the registered design professional or Authority Having Jurisdiction, deficient dimensions may propagate into design or permit-review documents.
No system privileges, credentials, or execution capabilities can be obtained through this flaw. The affected scope i ...[truncated 975 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace the affected instructions with the baseline factors:
- Stairways: 0.3 inch per occupant.
- Other egress components: 0.2 inch per occupant.
- Permit the reduced 0.2/0.15 factors only after explicitly confirming every applicable condition in IBC §1005.3.1 and §1005.3.2, including qualifying sprinkler protection and emergency voice/alarm communication coverage.
- If any prerequisite is unknown, use the baseline factors and mark the reduction as unresolved rather than assuming eligibility.
- Add a calculation guard requiring the report to identify the selected factor, its code section, and the verified prerequisites for each component.
- Add regression examples covering unsprinklered, NFPA 13, NFPA 13R, and unknown-protection cases. Unsprinklered and unknown cases must never receive sprinkler-dependent reductions.
- Have the corrected language and numerical examples reviewed against the adopted IBC edition and local amendments by a qualified building-code professional.
- Replace the affected instructions with the baseline factors:
