Skip to content

Feat/oss fuzz integration#8

Open
0ai-Cyberviser wants to merge 64 commits intocyberviser:mainfrom
0ai-Cyberviser:feat/oss-fuzz-integration
Open

Feat/oss fuzz integration#8
0ai-Cyberviser wants to merge 64 commits intocyberviser:mainfrom
0ai-Cyberviser:feat/oss-fuzz-integration

Conversation

@0ai-Cyberviser
Copy link
Copy Markdown

Description

Type of Change

  • πŸ› Bug fix
  • ✨ New feature
  • πŸ“ Documentation update
  • πŸ€– Training data addition
  • πŸ”§ Refactor / cleanup

Related Issue

Closes #

Changes Made

Testing

  • Tested CLI mode
  • Tested API server (/v1/chat, /v1/triage, etc.)
  • Verified no secrets in committed files

Checklist

  • My code follows the existing style
  • I have NOT committed .env or any API keys
  • All training data is from public, legally sourced knowledge bases
  • The agent's ethical guardrails remain intact

0ai-Cyberviser and others added 30 commits March 23, 2026 05:17
…ed reconnaissance, exploitation, and post-exploitation tool integration including run_full_assessment() with allowlist safety checks.
…task management and vulnerability detection.
…nd-add-tests

[WIP] Fix critical bugs and add test suite for readiness
….txt placeholders, nmap ImportError, run_nmap/run_sqlmap/run_burp_full_scan functions, split urllib imports

Co-authored-by: 0ai-Cyberviser <266508493+0ai-Cyberviser@users.noreply.github.com>
Agent-Logs-Url: https://github.com/0ai-Cyberviser/Hancock/sessions/ff3edba7-164f-4ced-866b-76be411583b4
…dashboard, alerting rules)

- monitoring/metrics_exporter.py: Prometheus histograms/gauges/counters
  (hancock_request_duration_seconds, hancock_requests_total,
   hancock_model_response_time_seconds, hancock_rate_limit_exceeded_total,
   hancock_memory_usage_bytes, hancock_active_connections)
  with no-op fallback when prometheus_client is not installed
- monitoring/health_check.py: deep health checks for Ollama, NVIDIA NIM,
  memory, disk, and Prometheus with 30 s TTL caching
- monitoring/logging_config.py: structured JSON logging with thread-local
  request-ID correlation and optional Flask integration
- monitoring/prometheus_dashboard.py: generates grafana_dashboard.json
- monitoring/grafana_dashboard.json: Grafana dashboard (timeseries + stat
  panels for all six key metrics)
- monitoring/alerting_rules.yaml: Prometheus alerting rules for error rate
  >5 %, p99 >5 s, model unavailability, rate-limit exhaustion, memory growth

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…Formatter

Replace separate time.gmtime() + record.msecs calls (which could drift
across a second boundary) with a single datetime.fromtimestamp() call
that derives both seconds and milliseconds from record.created.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- deploy/Dockerfile: multi-stage build (builder + runtime stages)
- deploy/docker-compose.yml: Hancock + Ollama + Prometheus + Grafana
- deploy/k8s/: Deployment, HPA, Service, ConfigMap, Secret template
- deploy/helm/: Chart.yaml, values.yaml, templates/deployment.yaml
- deploy/terraform/main.tf: AWS ECS Fargate + ALB + auto-scaling + CloudWatch
- deploy/startup_checks.py: pre-flight Python/import/env-var validation
- deploy/graceful_shutdown.py: SIGTERM/SIGINT handler for clean shutdown

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- deploy/docker-compose.yml: fix comment to say '../Dockerfile'
- deploy/terraform/main.tf: simplify ECS health check to use curl
  instead of complex nested Python string interpolation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- tests/conftest.py: shared fixtures (mock_openai_client, hancock_app,
  hancock_client, sample data) prefixed to avoid conflicts with existing tests
- tests/test_integration_deployment.py: Flask test client endpoint tests
  for /health, /metrics, /v1/chat, /v1/ask, /v1/triage, /v1/agents,
  /v1/hunt, /v1/code, /v1/yara, /v1/ioc with field and status assertions
- tests/test_performance.py: median latency + throughput regression tests
- tests/benchmark_suite.py: p50/p95/p99 latency benchmarks; runnable
  standalone for a summary table
- tests/load_test_locust.py: Locust HttpUser profiles (HealthOnly,
  ReadOnly, TypicalAnalyst, Spike, SOCAnalyst, Pentester)
- .github/workflows/test.yml: matrix lint + pytest for Python 3.10/3.11/3.12
- .github/workflows/benchmark.yml: PR latency regression benchmark
- .github/workflows/security.yml: Bandit SAST + pip-audit + Trivy image scan
- .github/workflows/release.yml: Docker build/push to GHCR + GitHub Release

All new Python files pass flake8 E9/F63/F7/F82.
All 186 tests pass (121 pre-existing + 65 new).
All workflow jobs carry explicit permissions blocks (contents: read).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…checklist guides

- docs/deployment.md: Docker, Docker Compose, Kubernetes, Helm, Terraform (AWS ECS),
  Fly.io, environment variable reference, graceful shutdown
- docs/monitoring.md: Prometheus metrics, Grafana dashboard, alerting rule groups,
  health check API, structured logging setup, local stack quickstart
- docs/performance.md: p50/p95/p99 latency targets, benchmark suite usage,
  Locust load testing profiles, WSGI and HPA tuning guidance
- docs/production-checklist.md: actionable checklist across infrastructure,
  secrets, networking, scalability, observability, and testing categories
- docs/ci-cd.md: all GitHub Actions workflows (test, benchmark, security,
  release, deploy, finetune, CodeQL), required secrets, local equivalents

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…-agent

[WIP] Fix bugs in hancock_agent.py for clean implementation
…om flake8

Co-authored-by: 0ai-Cyberviser <266508493+0ai-Cyberviser@users.noreply.github.com>
Agent-Logs-Url: https://github.com/0ai-Cyberviser/Hancock/sessions/4d1074f1-6853-4775-9319-0a6befe51e63
…ivy-flake8

Fix security.yml Trivy action version and python-package.yml flake8 .venv exclusion
Co-authored-by: 0ai-Cyberviser <266508493+0ai-Cyberviser@users.noreply.github.com>
Agent-Logs-Url: https://github.com/0ai-Cyberviser/Hancock/sessions/f5104d93-3451-43d6-9194-bf1da017e5d4
…-errors

Fix security.yml trivy-image job: wrong Dockerfile path and failing exit-code
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 90 out of 92 changed files in this pull request and generated 11 comments.


πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: 0ai <0ai@cyberviserai.com>
Copilot AI review requested due to automatic review settings March 29, 2026 00:09
@0ai-Cyberviser
Copy link
Copy Markdown
Author

@copilot apply changes based on the comments in this thread

@0ai-Cyberviser
Copy link
Copy Markdown
Author

@copilot apply changes based on the comments in this thread

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 90 out of 92 changed files in this pull request and generated 3 comments.


πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: 0ai <0ai@cyberviserai.com>
Copilot AI review requested due to automatic review settings March 29, 2026 01:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 90 out of 92 changed files in this pull request and generated 6 comments.


πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@0ai-Cyberviser 0ai-Cyberviser requested a review from Copilot March 29, 2026 02:29
@0ai-Cyberviser 0ai-Cyberviser marked this pull request as draft March 29, 2026 02:33
@0ai-Cyberviser 0ai-Cyberviser marked this pull request as ready for review March 29, 2026 02:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 90 out of 92 changed files in this pull request and generated 2 comments.


πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: 0ai <0ai@cyberviserai.com>
Copilot AI review requested due to automatic review settings March 29, 2026 02:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 90 out of 92 changed files in this pull request and generated 7 comments.


πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: 0ai <0ai@cyberviserai.com>
Copilot AI review requested due to automatic review settings March 29, 2026 03:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 90 out of 92 changed files in this pull request and generated 5 comments.


πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@0ai-Cyberviser
Copy link
Copy Markdown
Author

@copilot apply changes based on the comments in this thread

@0ai-Cyberviser
Copy link
Copy Markdown
Author

@copilot apply changes based on the comments in this thread

@0ai-Cyberviser
Copy link
Copy Markdown
Author

@copilot apply changes based on the comments in this thread

@0ai-Cyberviser
Copy link
Copy Markdown
Author

@copilot apply changes based on the comments in this thread

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.

3 participants