Dosu LogoDosu Logo
Ask
Join our Discord
Organization avatar
CipherSwarmPublic
EvilBit Labs LLC
DocumentsCipherSwarm
rule_explanation
rule_explanation
Type
External
Status
Published
Created
Feb 27, 2026
Updated
Feb 27, 2026
Source
docs/v2_rewrite_implementation_plan/notes/specific_tasks/rule_explanation.md

🧠 Task: Add Human-Readable Rule Preview Tooltips#

ID: attack.rule_preview_explanation
Context: Web UI (Phase 2/3) - Dictionary Attack Editor

🔧 Backend Requirements (Already Done)#

This task is already implemented on the backend and exposes a mapping from rule lines (e.g., c, u, T0, r) to short human-readable explanations (e.g., c → lowercase all characters, T0 → toggle case of first character, etc.).

🎨 UI Goals#

Enhance the Rule List Dropdown (used in the dictionary attack editor) by displaying tooltips next to each rule in the dropdown that show a short explanation of the rule.

✅ Implementation Instructions#

  • Use a searchable dropdown component for rule selection.

  • For each rule entry:

    • Display the rule file name (e.g., common-case-modifiers.rule)
    • Underneath or beside it, list each rule line with a brief explanation.
      • Example rendering:

        Title Case Rules
        ├─ c → Lowercase all characters
        ├─ u → Uppercase all characters
        ├─ T0 → Toggle case of first character
        
      • Can be inline with tooltips (<span data-tooltip>) or as a collapsible block beneath the rule name.

      • For full rule syntax, fallback to a modal.

  • This is preview only — selecting the rule still works as usual.

💡 Optional Enhancements#

  • Add an info icon (?) next to the rule dropdown.
    • Clicking it opens a modal (e.g., GET /api/v1/web/modals/rule_explanation).
    • Modal content includes a longer explanation of rule syntax and examples.

🧩 Implementation Notes#

  • Rule explanations can be preloaded inline or lazy-loaded on hover.
  • If shown inline in the dropdown, explanations must not overflow or break alignment.
  • Tooltips should be styled clearly and be screen-reader accessible.
  • Do not allow users to edit rule lines here — this is strictly a read-only preview.
Documents
Agent Architecture Specifications
CipherSwarm Project Specification and Phase Organization
diagrams
Agent Configuration Management
Agent Client Configuration Flags
Agent Installation Guide
Airgapped Network Deployment Tutorial
api-reference-agent-auth
configuration
Agent Core Orchestration
configuration
diagrams
Basic Usage
air-gapped-deployment
CipherSwarm API Client Integration
api-reference-agent-auth
Client Setup and Configuration
Agent Client Configuration Flags
Agent Installation Guide
air-gapped-deployment
Airgapped Network Deployment Tutorial
Development
Authorization and List Deletion Permissions
CipherSwarm Project Documentation Structure
CipherSwarm Project Specification and Phase Organization
CipherSwarm V2 Development Workflow
GitHub Actions and Dependency Management
Rails 8 Upgrade and Migration
Security and Performance Enhancements
Testing Strategy and Documentation
Testing Strategy and Framework
Distributed Task Management
api-reference-agent-auth
diagrams
Task_Management_Actions
Enhanced Task Monitoring Specification
Agent_Monitoring_&_Real-Time_Updates
Error Handling and Logging Framework
Testing Strategy and Documentation
Testing Strategy and Framework
GitHub Issue Templates
GitHub Issue and Pull Request Templates
Progress and Status Reporting
Agent_Monitoring_&_Real-Time_Updates
Task_Management_Actions
UI_Components_&_Loading_States
Rails User Interface Development
Task_Management_Actions
UI_Components_&_Loading_States
Server Administration
air-gapped-deployment
Server Installation
air-gapped-deployment
Airgapped Network Deployment Tutorial
Installation guide
Testing and Validation Suite
developer-guide
CONTRIBUTING
Campaign_Progress_&_ETA_Display
Core_Flows__Operational_Monitoring_&_User_Experience
Database_Schema_&_Model_Extensions
Epic_Brief__CipherSwarm_V2_Operational_Excellence
Integration_Testing_&_Quality_Assurance
Production_Deployment_&_Monitoring
README
README
Structured_Logging_&_Error_Handling
System_Health_Monitoring
Tech_Plan__Operational_Excellence_Implementation
User_Guide_Documentation
advanced_task_scheduler
agent
agent-api-complete-reference
agent-server-collaboration-vision
agent-setup
agent_notes
agent_sync_extensions
agent_v1_contract_violations
air-gapped-deployment
allow_hybrid_hash_lists
attack
attack-configuration
attack_notes
authentication_cleanup
brute_force_attack_editor
campaign-management
campaign_list_view
campaign_notes
campaign_priority_system
campaigns
common-issues
core_algorithm_implementation_guide
crackable_uploads_plan
dashboard-ux
default_config_suggestions
faq
full_testing_architecture
getting-started
hard_password_attack_strategies
health_status_screen
implementation_plan
installation
learned_rules_parser_plan
logging-guide
markov_autogen_plan
new_dictionary_attack_editor
new_mask_attack_editor
optimization
phase-1-core-infrastructure
phase-2-api-implementation
phase-2-api-implementation-part-1
phase-2-api-implementation-part-2
phase-2-api-implementation-part-3
phase-2b-resource-management
phase-2c-refactor-cleanup
phase-3-e2e-test-coverage-plan
phase-3-step-1
phase-3-step-2
phase-3-step-3
phase-3-step-4
phase-3-step-5
phase-3-web-ui-foundation
phase-4-containerization-deployment
phase-5-task-distribution
phase-6-monitoring-testing-documentation
playwright-manual-flows
previous_password_dictionary_attack_editor
production-load-balancing
project_structure
psycopg_migration
quick-reference
quick-start
resource-management
rule_explanation
salvage_templates
spa_to_ssr
style-guide
summary
system-tests-guide
test-failures-investigation
testcontainers_minio_support
troubleshooting
troubleshooting-agents
understanding-results
usage
user_flows_notes
v2-upgrade-overview
v2_agent_api_removal
web-interface