Skip to main content

Module access

Module access 

Source
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§

AccessControlMap
Complete access control analysis for a contract.
AccessModifier
An access control modifier.
AuthAnalysis
Authorization mechanism analysis.
PrivilegedFunction
A function with access control restrictions.
SourceLocation
A location in source code.

Enums§

ModifierCheckType
Type of access check performed by a modifier.
PrivilegeRisk
Risk level for a privileged operation.

Functions§

analyze_access_control
Analyze access control patterns in contract source code.