Files
trailofbits-buttercup/common
Ronald Eytchison fecf87293d Add vuln discovery eval (#68)
* Add vuln discovery eval script

* Handle multiple markdown blocks in response

* Add langfuse metadata

* Add timestamp to output dirs

* Make abstract class

* Move vuln discovery eval script

* Make VulnDiscovery class

* Add eval script to test current vuln discovery implementation

* Switch to Claude 3.5 Sonnet for seed-gen

* Update vuln discovery prompts

* Appease ruff

* Update seed-gen for changes from main

* Fix ReproduceMultiple
2025-02-21 11:44:02 -05:00
..

Buttercup Common utilities

Protobufs

The protos directory contains the protobuf definitions for various messages used by the Buttercup system.

Message Publisher utility

The buttercup-msg-publisher script is a utility for pushing custom messages to a queue.

$ buttercup-msg-publisher list
$ cat /tmp/msg.proto
task {
  message_id: "my-message-id"
  message_time: 123
  task_id: "my-task-id"
  task_type: TASK_TYPE_DELTA
  sources {
    url: "https://github.com/buttercup-project/buttercup"
  }
  sources {
    source_type: SOURCE_TYPE_FUZZ_TOOLING
    url: "https://github.com/buttercup-project/fuzz-tooling"
  }
  sources {
    source_type: SOURCE_TYPE_DIFF
    url: "https://github.com/buttercup-project/diff"
  }
  deadline: 123
}
$ buttercup-msg-publisher send tasks_ready_queue /tmp/msg.proto
2025-01-28 13:38:37,674 - buttercup.common.msg_publisher - INFO - Reading TaskReady message from file '/tmp/msg.proto'
2025-01-28 13:38:37,675 - buttercup.common.msg_publisher - INFO - Pushing message to queue 'tasks_ready_queue': task {
  message_id: "my-message-id"
  message_time: 123
  task_id: "my-task-id"
  task_type: TASK_TYPE_DELTA
  sources {
    url: "https://github.com/buttercup-project/buttercup"
  }
  sources {
    source_type: SOURCE_TYPE_FUZZ_TOOLING
    url: "https://github.com/buttercup-project/fuzz-tooling"
  }
  sources {
    source_type: SOURCE_TYPE_DIFF
    url: "https://github.com/buttercup-project/diff"
  }
  deadline: 123
}