Skip to content

Conversation

Copy link

Copilot AI commented Dec 12, 2025

Builds a Flutter client that interfaces with Cloudflare Worker APIs to coordinate security scanning across Web2, Web3, smart contracts, static analyzers, and volunteer agents.

API Integration

  • Task queueing: POST /api/tasks/queue, GET /api/tasks
  • Target registration: POST /api/targets/register, GET /api/targets, DELETE /api/targets/:id
  • Result ingestion: POST /api/results/ingest, GET /api/results

Core Services

TaskManager - Hash-based deduplication prevents duplicate scans. Generates consistent hash from type:target:sortedParams for O(1) duplicate detection.

String _generateTaskHash(String type, String target, Map<String, dynamic> parameters) {
  final sortedParams = SplayTreeMap<String, dynamic>.from(parameters);
  return '$type:$target:${sortedParams.toString()}';
}

TargetManager - Tracks registered scan targets with URL-based duplicate prevention.

ResultManager - Aggregates agent results and vulnerabilities for LLM triage pipeline.

Data Models

  • Task - Status tracking (pending → queued → processing → completed/failed)
  • Target - Type classification (website, smartContract, api, repository)
  • AgentResult - Findings with CVE/CWE-tagged vulnerabilities
  • Vulnerability - Severity levels (critical, high, medium, low, info)

UI

Material Design 3 client with:

  • Dashboard with real-time statistics
  • Task management with status filtering
  • Target registration with type selection
  • Vulnerability viewer with severity sorting

Supports 5 agent types: web2Crawler, web3Monitor, staticAnalyzer, contractScanner, volunteerAgent.

Local caching reduces API calls. Provider-based state management for reactive UI updates.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://storage.googleapis.com/flutter_infra_release/flutter/a5cb96369ef86c7e85abf5d662a1ca5d89775053/dart-sdk-linux-x64.zip
    • Triggering command: /usr/bin/curl curl --retry 3 --continue-at - --location --output /tmp/flutter/bin/cache/dart-sdk-linux-x64.zip REDACTED (http block)
  • https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.24.5-stable.tar.xz
    • Triggering command: /usr/bin/wget wget -q REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Make just the flutter client for this (the cloudflare worker api and website are in another repo). It should interface with endpoints for task queueing, target registration, and agent result ingestion. The Worker will coordinate Web2 crawlers, Web3 monitors, static analyzers, contract scanners, and volunteer agents. Store job states, dedupe tasks, and prepare data for the LLM triage engine and vulnerability DB.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI self-assigned this Dec 12, 2025
Copilot AI and others added 5 commits December 12, 2025 07:32
…, and UI

Co-authored-by: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com>
Co-authored-by: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com>
Co-authored-by: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com>
Co-authored-by: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com>
Co-authored-by: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com>
Copilot AI changed the title [WIP] Add flutter client for task queuing and agent registration Implement Flutter client for NetGuardian security platform Dec 12, 2025
Copilot AI requested a review from DonnieBLT December 12, 2025 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants