Skip to content
Back to skills

2527 Permission Flags Risk Assessment Aaddde09

ASecurity

You are auditing a Uniswap V4 hook and need to assess the risk level of its permission flags configuration.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
securitygosecurity

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2527-permission-flags-risk-assessment_aaddde09 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2527 Permission Flags Risk Assessment Aaddde09?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2527 Permission Flags Risk Assessment Aaddde09
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2527-permission-flags-risk-assessment-aaddde09/badge)](https://www.skillsdirectory.com/skills/tools-only-2527-permission-flags-risk-assessment-aaddde09)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# Permission Flags Risk Assessment

You are auditing a Uniswap V4 hook and need to assess the risk level of its permission flags configuration.

## Context

A developer has submitted the following hook permissions for review:

```solidity
function getHookPermissions() public pure override returns (Hooks.Permissions memory) {
    return Hooks.Permissions({
        beforeInitialize: false,
        afterInitialize: true,
        beforeAddLiquidity: true,
        afterAddLiquidity: false,
        beforeRemoveLiquidity: true,
        afterRemoveLiquidity: false,
        beforeSwap: true,
        afterSwap: true,
        beforeDonate: false,
        afterDonate: false,
        beforeSwapReturnDelta: true,
        afterSwapReturnDelta: false,
        afterAddLiquidityReturnDelta: false,
        afterRemoveLiquidityReturnDelta: false
    });
}
```

## Questions

1. Assess the risk level of each enabled permission flag (LOW, MEDIUM, HIGH, CRITICAL).
2. What is the overall risk score for this hook configuration?
3. Which enabled permissions are the most concerning and why?
4. What audit tier would you recommend for a hook with this configuration?

## Requirements

Your response should:

1. Provide a risk assessment for each enabled permission
2. Explain the specific threats associated with high-risk permissions
3. Calculate or estimate an overall risk score
4. Recommend appropriate security measures based on the risk level

## Expected Output

A structured risk assessment that categorizes each permission and provides actionable recommendations.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.