File size: 420 Bytes
3807ea3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""Safety boundaries for local-only defensive AppSec episodes."""

from __future__ import annotations


FORBIDDEN_BEHAVIOR = (
    "external network access",
    "host filesystem reads",
    "hidden test access",
    "oracle access",
    "credential extraction",
    "persistence or evasion",
)


def is_local_route(path: str) -> bool:
    return path.startswith("/") and not path.startswith("//") and "://" not in path