Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions projects/hancock/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
################################################################################

FROM gcr.io/oss-fuzz-base/base-builder-python
RUN apt-get update && apt-get install -y python3-dev
RUN git clone --depth 1 https://github.com/0ai-Cyberviser/Hancock.git $SRC/hancock
WORKDIR $SRC/hancock
COPY build.sh $SRC/
31 changes: 31 additions & 0 deletions projects/hancock/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash -eu
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
################################################################################

pip3 install -r "$SRC/hancock/requirements.txt"

FUZZ_DIR="$SRC/hancock/fuzz"

shopt -s nullglob
for fuzzer in "$FUZZ_DIR"/fuzz_*.py; do
fuzzer_basename=$(basename "$fuzzer" .py)
compile_python_fuzzer "$fuzzer"
corpus_name="${fuzzer_basename#fuzz_}"
corpus_dir="$FUZZ_DIR/corpus/$corpus_name"
if [ -d "$corpus_dir" ]; then
zip -j "$OUT/${fuzzer_basename}_seed_corpus.zip" "$corpus_dir"/* 2>/dev/null || true
fi
done
11 changes: 11 additions & 0 deletions projects/hancock/project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
homepage: "https://github.com/0ai-Cyberviser/Hancock"
language: python
primary_contact: "cyberviser@proton.me"
auto_ccs:
- "security@cyberviser.ai"
fuzzing_engines:
- libfuzzer
sanitizers:
- address
- undefined
main_repo: "https://github.com/0ai-Cyberviser/Hancock"
Loading