- Add RateLimitConfig for configuration management with YAML binding support. - Introduce RateLimitDecision to encapsulate the result of rate limit checks. - Implement RateLimitMetrics for OpenTelemetry metrics tracking. - Create RateLimitMiddleware for enforcing rate limits on incoming requests. - Develop RateLimitService to orchestrate instance and environment rate limit checks. - Add RateLimitServiceCollectionExtensions for dependency injection registration.
30 lines
803 B
JSON
30 lines
803 B
JSON
{
|
|
"$schema": "https://stellaops.io/schemas/sample-manifest.v1.json",
|
|
"sampleId": "gt-0001",
|
|
"version": "1.0.0",
|
|
"category": "basic",
|
|
"description": "Direct call to vulnerable sink from main - REACHABLE",
|
|
"language": "c",
|
|
"expectedResult": {
|
|
"reachable": true,
|
|
"tier": "executed",
|
|
"confidence": 1.0
|
|
},
|
|
"source": {
|
|
"files": ["main.c"],
|
|
"entrypoint": "main",
|
|
"sink": "strcpy",
|
|
"vulnerability": "CWE-120"
|
|
},
|
|
"callChain": [
|
|
{"function": "main", "file": "main.c", "line": 5},
|
|
{"function": "strcpy", "file": "<libc>", "line": null}
|
|
],
|
|
"annotations": {
|
|
"notes": "Simplest reachable case - direct call from entrypoint to vulnerable function",
|
|
"difficulty": "trivial"
|
|
},
|
|
"createdAt": "2025-12-17T00:00:00Z",
|
|
"createdBy": "corpus-team"
|
|
}
|