Expand description
§Access Control Mapping
Analyzes smart contract source code to identify and map access control patterns, privileged functions, ownership, and authorization mechanisms.
§Detected Patterns
- Ownable - OpenZeppelin Ownable (onlyOwner modifier)
- AccessControl - Role-based access (OpenZeppelin AccessControl)
- tx.origin - Dangerous authorization via tx.origin
- Custom modifiers - Any modifier that gates function access
- Renounced ownership - renounceOwnership() calls detected
- Multisig patterns - Multiple signature requirements
Structs§
- Access
Control Map - Complete access control analysis for a contract.
- Access
Modifier - An access control modifier.
- Auth
Analysis - Authorization mechanism analysis.
- Privileged
Function - A function with access control restrictions.
- Source
Location - A location in source code.
Enums§
- Modifier
Check Type - Type of access check performed by a modifier.
- Privilege
Risk - Risk level for a privileged operation.
Functions§
- analyze_
access_ control - Analyze access control patterns in contract source code.