T09 · Insecure Skill Coding Practices
- Location
回归测试用例_v1.md:65- Finding
Regression Test Incorrectly Accepts a Missed Statutory Response Deadline
- Content
View full analysis
Vulnerability Details
File Location:
回归测试用例_v1.md, line 65
Vulnerability Type: Incorrect deadline-validation oracle
Risk Level: MediumVulnerable Snippet
text - Procuring entity received the objection: 2026-04-15; response date: 2026-04-24 (calendar days, within the three-day limit ✓; this example spans multiple non-working days, and the Skill must explicitly state that the three-day period consists of calendar days and must not be exceeded).The excerpt above is an English rendering of the affected test specification. It identifies April 24 as compliant with a three-calendar-day deadline beginning on April 15.
Technical Analysis
The regression oracle is mathematically inconsistent with the Skill's mandatory deadline rule. April 24 is nine calendar days after April 15, while a three-calendar-day deadline would expire on April 18 at the latest.
This conflicts with:
SKILL.md, which repeatedly requires a response within three calendar days.回归实测_5例.md, which correctly calculates April 18 as the deadline and identifies April 24 as the actual late response.
In this documentation-only project, regression expectations directly influence how the agent's behavior is evaluated. The incorrect check mark creates a false-positive test oracle: an implementation or generated response that accepts a nine-day interval could pass review despite violating the declared rule. Contradictory instructions may also produce nondeterministic behavior when both the primary Skill and regression fixture are supplied as context.
Attack Path
- A developer, evaluator, or AI agent uses the regression specification as the expected behavioral reference.
- The April 15 to April 24 interval is interpreted as compliant because the fixture explicitly labels it as within three days and marks it as passing.
- Similar deadline-calculation defects are accepted during testing or review.
- The Skill generates or approves a response after the a ...[truncated 925 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace the response date with
2026-04-18or an earlier date if the scenario is intended to represent a compliant response. - If April 24 reflects the underlying case, explicitly mark the response as overdue and make deadline rejection the expected result.
- Add deterministic validation requiring:
text response_date <= received_date + 3 calendar days- Add boundary tests covering:
- A response issued on the date of receipt.
- A response issued exactly on the third calendar day.
- A response issued on the fourth calendar day.
- Deadlines spanning weekends and public holidays.
- Invalid or missing dates.
- Ensure executable assertions or independently calculated dates determine pass or fail status rather than narrative check marks.
- Re-run the regression suite after correction and reconcile the expected-results document with
SKILL.mdand回归实测_5例.md.
- Replace the response date with
