-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into poetry-deps
- Loading branch information
Showing
156 changed files
with
8,994 additions
and
1,924 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Build: docker build -t fraken -f tools/fraken/Dockerfile . | ||
# Run: docker run -ti fraken fraken -rules /opt/signature-base -folder / | ||
# Image: us-docker.pkg.dev/osdfir-registry/turbinia/release/fraken:latest | ||
|
||
FROM golang:alpine AS fraken-builder | ||
RUN apk add --no-cache -t .build-deps \ | ||
autoconf \ | ||
automake \ | ||
bison \ | ||
build-base \ | ||
curl \ | ||
file \ | ||
file-dev \ | ||
flex \ | ||
git \ | ||
jansson \ | ||
jansson-dev \ | ||
jansson-static \ | ||
libc-dev \ | ||
libmagic \ | ||
libmagic-static \ | ||
libtool \ | ||
linux-headers \ | ||
openssl \ | ||
openssl-dev \ | ||
openssl-libs-static \ | ||
py3-setuptools \ | ||
python3 \ | ||
python3-dev \ | ||
sudo | ||
|
||
RUN set -x \ | ||
&& echo "Compiling Yara from source..." | ||
|
||
# Fetch and compile libyara | ||
RUN mkdir -p /opt/fraken/yara | ||
WORKDIR /opt/fraken/yara | ||
RUN cd /opt/fraken/yara && curl -s -L --retry 5 "$(curl -s -L --retry 5 https://api.github.com/repos/VirusTotal/Yara/releases/latest | sed -n 's/.*"tarball_url": "\(.*\)",.*/\1/p')" | tar -xz --strip-components=1 | ||
RUN ./bootstrap.sh | ||
RUN sync | ||
RUN ./configure --with-crypto \ | ||
--enable-magic \ | ||
--enable-cuckoo | ||
RUN make | ||
RUN sudo make install | ||
|
||
# Compile fraken statically | ||
COPY tools/fraken/* /opt/fraken/ | ||
RUN cd /opt/fraken && GOOS=linux GOARCH=amd64 go build -a -v -ldflags="-linkmode=external -extldflags=-static" -installsuffix netgo -tags yara_static,osusergo,netgo -o fraken | ||
|
||
FROM alpine:3.18.4 AS fraken | ||
# Install yara rules and fraken binary. | ||
RUN apk add --no-cache -t .build-deps git | ||
RUN cd /opt \ | ||
&& git clone https://github.com/Neo23x0/signature-base.git \ | ||
&& find /opt/signature-base -type f -not -iname '*.yar' -not -iname '*.yara' -not -iname 'file-type-signatures.txt' -delete | ||
COPY turbinia/config/rules/*.yar /opt/signature-base/yara/ | ||
# | ||
COPY --from=fraken-builder /opt/fraken/fraken /bin/fraken | ||
CMD ["fraken","-h"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Google Cloud Build configuration for Turbinia worker release | ||
steps: | ||
- name: gcr.io/cloud-builders/docker | ||
args: | ||
[ | ||
"build", | ||
"-t", | ||
"us-docker.pkg.dev/osdfir-registry/turbinia/release/fraken:$TAG_NAME", | ||
"-t", | ||
"us-docker.pkg.dev/osdfir-registry/turbinia/release/fraken:latest", | ||
"-f", | ||
"tools/fraken/Dockerfile", | ||
".", | ||
] | ||
timeout: 4800s | ||
timeout: 4800s | ||
images: | ||
- us-docker.pkg.dev/osdfir-registry/turbinia/release/fraken:latest | ||
- us-docker.pkg.dev/osdfir-registry/turbinia/release/fraken:$TAG_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
turbinia/api/client/docs/BodyUploadEvidenceApiEvidenceUploadPost.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# BodyUploadEvidenceApiEvidenceUploadPost | ||
|
||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**calculate_hash** | **object** | | [optional] | ||
**files** | **object** | | | ||
**ticket_id** | **object** | | | ||
|
||
## Example | ||
|
||
```python | ||
from turbinia_api_lib.models.body_upload_evidence_api_evidence_upload_post import BodyUploadEvidenceApiEvidenceUploadPost | ||
|
||
# TODO update the JSON string below | ||
json = "{}" | ||
# create an instance of BodyUploadEvidenceApiEvidenceUploadPost from a JSON string | ||
body_upload_evidence_api_evidence_upload_post_instance = BodyUploadEvidenceApiEvidenceUploadPost.from_json(json) | ||
# print the JSON string representation of the object | ||
print BodyUploadEvidenceApiEvidenceUploadPost.to_json() | ||
|
||
# convert the object into a dict | ||
body_upload_evidence_api_evidence_upload_post_dict = body_upload_evidence_api_evidence_upload_post_instance.to_dict() | ||
# create an instance of BodyUploadEvidenceApiEvidenceUploadPost from a dict | ||
body_upload_evidence_api_evidence_upload_post_form_dict = body_upload_evidence_api_evidence_upload_post.from_dict(body_upload_evidence_api_evidence_upload_post_dict) | ||
``` | ||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# LocationInner | ||
|
||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
|
||
## Example | ||
|
||
```python | ||
from turbinia_api_lib.models.location_inner import LocationInner | ||
|
||
# TODO update the JSON string below | ||
json = "{}" | ||
# create an instance of LocationInner from a JSON string | ||
location_inner_instance = LocationInner.from_json(json) | ||
# print the JSON string representation of the object | ||
print LocationInner.to_json() | ||
|
||
# convert the object into a dict | ||
location_inner_dict = location_inner_instance.to_dict() | ||
# create an instance of LocationInner from a dict | ||
location_inner_form_dict = location_inner.from_dict(location_inner_dict) | ||
``` | ||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.