Skip to content

ADR-031: implement deferred ContentBlacklist appeal-integrity mechanisms #779

Closed as not planned

Description

@thiras

Split out of the security audit pass (#777). These are the ADR-031 simplifications already documented in the ContentBlacklist contract header as intentionally deferred; the audit surfaced their security impact. They are larger, ADR-scoped features (some need a snapshot mechanism / ADR update), so they were kept out of the security PR by scoping decision.

1. Rejection cooldown (audit H-4)

There is no rate limit on abusive filers — only the success-path frequency cap (lastRatifiedSuccessAt) throttles ratified filers. An attacker can spam openBlacklistAppeal across distinct live entries, bounded only by bond cost. ADR-031 specifies a rejection cooldown (e.g. N rejections / 90 days → lockout). ~10-line lastRejectionAt[filer] mapping + check in openBlacklistAppeal + increment in rejectBlacklistAppeal.

2. Token-holder standing enforcement + synthetic-standing clawback (audit I-3)

StandingPath is recorded but only enum-range validated — any address can file an appeal claiming any standing (Publisher/Operator/TokenHolder) without proving it, paying only the bond. ADR-031 §216 admissibility condition (c) requires a balance/standing check. Needs a snapshot or balance-at-time mechanism.

3. Perjury denylist

ADR-031 integrity mechanism: governance-maintained denylist of filers who submitted false appeals, checked in openBlacklistAppeal. ~10 lines + a governance setter; depends on off-chain adjudication criteria.

Note

#777 already mitigated the related M-1 (per-region cap now counts only fast-tracked appeals, so Open-filing spam can't saturate a region's interim-relief budget) — but the bond is still the only brake on raw appeal-spam until (1) lands.

Activity

  1. added
    prio:high
    kind:security
    on Jun 1, 2026
  2. github-actions commented on Jun 1, 2026

    @github-actions

    🎯 Triage report

    This issue tracks three deferred ADR-031 appeal-integrity mechanisms surfaced by the security audit (#777): a rejection cooldown to rate-limit abusive filers (audit H-4), token-holder standing enforcement with synthetic-standing clawback (audit I-3), and a governance-maintained perjury denylist. All three were intentionally scoped out of #777 because they require either a snapshot/balance-at-time mechanism or an ADR update. The bond is currently the only brake on raw appeal spam until item 1 lands.

    📊 Assessment

    Dimension Value Reasoning
    Type Feature New contract mechanisms, not a regression fix
    Labels security, technical, prod-blocking, high Security audit findings with direct attack surface; ADR-scoped scope requiring design work; deferred-to-production classification; high severity per audit
    Coding agent Not suitable Item 2 (standing enforcement) requires a snapshot/balance-at-time mechanism and an ADR update; item 3 requires off-chain adjudication criteria to be defined first. Item 1 is the most self-contained but should land as part of the broader set.

    🔗 Similar issues

    💡 Notes and suggestions

    Suggested sub-tasks:

    • Item 1 — Rejection cooldown (H-4): Add lastRejectionAt[filer] mapping; increment in rejectBlacklistAppeal; check in openBlacklistAppeal against configurable window (90-day / N-rejection params). ~10 lines, most self-contained. Can ship independently.
    • Item 2 — Standing enforcement (I-3): Decide on snapshot mechanism (ERC20Votes getPastVotes, or a simpler balance-at-file-time check). Update ADR-031 §216(c) with the chosen approach before implementation. Synthetic-standing clawback logic follows once the snapshot primitive is settled.
    • Item 3 — Perjury denylist: Define off-chain adjudication criteria and governance setter interface. ~10 lines once criteria are agreed. Depends on governance process being documented.

    Coordination note: #688 appears to track items 2 and 3 (perjury denylist + synthetic-standing clawback + per-body concurrent-appeal cap). Recommend reconciling scope between #688 and this issue — item 1 (rejection cooldown) is the delta here. The M-1 mitigation already shipped in #777 (per-region cap counts only fast-tracked appeals) provides partial relief but does not substitute for item 1.

    Generated by Agentic Triage for issue #779 · sonnet46 400K · ◷

    Add this agentic workflows to your repo

    To install this agentic workflow, run

    gh aw add githubnext/agentics/workflows/issue-triage.md@94ec5db57374c5b04a4b8eef8b4413f9af44d63f
    
  3. thiras commented on Jun 5, 2026

    @thiras
    ContributorAuthor

    Closing as a duplicate of #688 — consolidated there. #688 is the older, pre-existing tracking issue for this deferred ADR-031 work and already covered the per-(body, region) concurrent-appeal cap; the deltas unique to this issue (rejection cooldown / audit H-4, the #777 audit lineage, and high priority) have been folded into #688's scope. Follow #688 going forward.

  4. added
    duplicate
    on Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicatekind:securityprio:high

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions