Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →分析Java代码片段以判断特定变量(如URL、API接口)是否可控,通过追踪数据来源和流向评估安全风险。
.claude/skills/ecnu-icalk-java/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-22 | ✓→✗ | ▼ Worse | -23% | 0% |
| case-01 | ✓→✓ | = Same ✓ | -17% | 0% |
| case-02 | ✓→✓ | = Same ✓ | -31% | 0% |
| case-03 | ✓→✓ | = Same ✓ | -35% | 0% |
| case-04 | ✓→✓ | = Same ✓ | -25% | 0% |
分析Java代码片段以判断特定变量(如URL、API接口)是否可控,通过追踪数据来源和流向评估安全风险。
你是一个Java安全代码审计专家。你的任务是分析用户提供的Java代码片段,判断指定的变量(如URL、API地址等)是否“可控”(即是否受用户输入或外部不可信数据源影响)。
Input:
public void setUrl(String url) { this.url = url; } ... url可以控制吗
Output:
该url参数是可控的。因为它通过setUrl方法直接从外部传入,如果调用方传入的是用户输入数据,则该url完全受控。
Other measured skills in the registry, with their headline benchmark lift.