Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standalone http server support #31

Merged
merged 28 commits into from
Oct 7, 2022
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
bee5b75
Standalone http server support has been added
mukuldeepfence Sep 27, 2022
e9289c6
Merge branch 'yarahuntergrpcserver'
deviprasad303 Sep 28, 2022
ca5937a
Revert "Merge branch 'yarahuntergrpcserver'"
deviprasad303 Sep 28, 2022
b76b1a5
Merge branch 'main' into standalone-http-server-support
deviprasad303 Sep 28, 2022
21c094b
create path
deviprasad303 Sep 30, 2022
637af85
Update listing with threatintel-yara-2022-09-30_20-42-11
github-actions[bot] Sep 30, 2022
3ed9fff
Update listing with threatintel-yara-2022-10-01_00-14-10
github-actions[bot] Oct 1, 2022
dfcf51e
Update listing with threatintel-yara-2022-10-01_23-46-40
github-actions[bot] Oct 1, 2022
cd6c365
Update listing with threatintel-yara-2022-10-02_00-13-30
github-actions[bot] Oct 2, 2022
2e10ed6
Update listing with threatintel-yara-2022-10-03_00-12-04
github-actions[bot] Oct 3, 2022
457f630
Update listing with threatintel-yara-2022-10-04_00-13-35
github-actions[bot] Oct 4, 2022
faa3010
Merge branch 'main' into standalone-http-server-support
deviprasad303 Oct 4, 2022
a19c795
Revert "Merge branch 'main' into standalone-http-server-support"
deviprasad303 Oct 4, 2022
539cbd4
Update listing with threatintel-yara-2022-10-05_00-12-29
github-actions[bot] Oct 5, 2022
7480502
Update listing with threatintel-yara-2022-10-05_20-42-47
github-actions[bot] Oct 5, 2022
df76475
make changes to yarahunter
deviprasad303 Oct 5, 2022
c174a47
Update listing with threatintel-yara-2022-10-06_00-12-39
github-actions[bot] Oct 6, 2022
0802087
Update listing with threatintel-yara-2022-10-07_00-15-15
github-actions[bot] Oct 7, 2022
d9d0594
make changes to docker file
deviprasad303 Oct 7, 2022
a56eca5
Merge branch 'standalone-http-server-support' of https://github.com/d…
deviprasad303 Oct 7, 2022
c2e3a05
make changes to dockerfile
deviprasad303 Oct 7, 2022
4f87ca2
make changes to go routine
deviprasad303 Oct 7, 2022
30f45ff
make changes
deviprasad303 Oct 7, 2022
a8113b8
make changes to yarahunter
deviprasad303 Oct 7, 2022
1c3d509
make changes to yara hunter
deviprasad303 Oct 7, 2022
fef4222
add maintainers
deviprasad303 Oct 7, 2022
e87d8fd
move changes to svg
deviprasad303 Oct 7, 2022
86d8e66
make changes to svg
deviprasad303 Oct 7, 2022
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
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
FROM golang:1.18.3-bullseye AS builder
MAINTAINER DeepFence



RUN apt-get update \
&& apt-get -qq -y --no-install-recommends install build-essential automake libtool make gcc pkg-config libssl-dev git protoc-gen-go \
&& apt-get -qq -y --no-install-recommends install build-essential automake libtool make gcc pkg-config libssl-dev \
libjansson-dev libmagic-dev \
&& cd /root \
&& wget https://github.com/VirusTotal/yara/archive/refs/tags/v4.2.1.tar.gz \
Expand All @@ -20,7 +18,6 @@ RUN apt-get update \
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.27.1 \
&& go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2.0


WORKDIR /home/deepfence/src/YaRadare
COPY . .
RUN make clean \
Expand All @@ -36,7 +33,7 @@ ENV MGMT_CONSOLE_URL=deepfence-internal-router \
MGMT_CONSOLE_PORT=443 \
LD_LIBRARY_PATH=/usr/local/yara/lib \
DOCKERVERSION=20.10.17
RUN apt-get update && apt-get -qq -y --no-install-recommends install libjansson4 libssl1.1 libmagic1 libstdc++6 jq bash skopeo curl python3-pip \
RUN apt-get update && apt-get -qq -y --no-install-recommends install libjansson4 libssl1.1 libmagic1 bash curl python3-pip \
&& curl -fsSLOk https://github.com/containerd/nerdctl/releases/download/v0.18.0/nerdctl-0.18.0-linux-amd64.tar.gz \
&& tar Cxzvvf /usr/local/bin nerdctl-0.18.0-linux-amd64.tar.gz \
&& rm nerdctl-0.18.0-linux-amd64.tar.gz \
Expand All @@ -49,8 +46,6 @@ WORKDIR /home/deepfence/usr
COPY --from=builder /usr/local/yara.tar.gz /usr/local/yara.tar.gz
COPY --from=builder /home/deepfence/src/YaRadare/YaRadare .
COPY --from=builder /home/deepfence/src/YaRadare/config.yaml .
COPY --from=builder /home/deepfence/src/YaRadare/registry_image_save .
RUN pip3 install -r requirements.txt
RUN cd /usr/local/ \
&& tar -xzf yara.tar.gz
WORKDIR /home/deepfence/output
Expand Down
17 changes: 17 additions & 0 deletions MAINTAINERS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Maintainers of Deepfence YaraHunter

| Name | Email | Deepfence Community Slack | GitHub | Company |
|-------------------------|---------------------------|---------------------------|------------------------------------------------------|-----------|
| Venkata Deviprasad Sura | deviprasad@deepfence.io | `@Devi Prasad` | [@deviprasad303](https://github.com/deviprasad303) | Deepfence |
| Mukul Varshney | mukul@deepfence.io | `@Mukul Varshney` | [@mukuldeepfence](https://github.com/mukuldeepfence) | Deepfence |
| Harshvardhan Karn | harshvardhan@deepfence.io | `@harsh` | [@ibreakthecloud](https://github.com/ibreakthecloud) | Deepfence | | | | | |

Please reach any of the maintainers on slack (#community-support on https://deepfence-community.slack.com) or email if you want to help.

## How to be maintainer?

Any contributor that shows effort, consistentcy and willingness in maintaining a repository will be invited to join the Maintainers team.

Open Source is all about the trust, which is the key factor in decision to add write permissions.

Reach us if you have any questions on how to join maintainer team.
10 changes: 1 addition & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
all: YaRadare

$(PWD)/agent-plugins-grpc/proto/*.proto:
$(PWD)/bootstrap.sh


$(PWD)/agent-plugins-grpc/proto/*.go: $(PWD)/agent-plugins-grpc/proto/*.proto
(cd agent-plugins-grpc && make go)

clean:
-(cd agent-plugins-grpc && make clean)
-rm ./YaRadare

YaRadare: $(PWD)/**/*.go $(PWD)/agent-plugins-grpc/proto/*.go
YaRadare:
env PKG_CONFIG_PATH=/usr/local/yara/lib/pkgconfig:$(PKG_CONFIG_PATH) go build -buildvcs=false -v .

.PHONY: clean
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ YaraHunter is a work-in-progress (check the [Roadmap](https://github.com/orgs/de

For full instructions, refer to the [YaraHunter Documentation](https://docs.deepfence.io/yarahunter/).

![demo gif](demo.gif)
![YaraHunter QuickStart](docs/docs/yarahunter/img/yarahunter.svg)

## Example: Finding Indicators of Compromise in a container image

Expand Down
19 changes: 0 additions & 19 deletions agent-plugins-grpc/.gitignore

This file was deleted.

201 changes: 0 additions & 201 deletions agent-plugins-grpc/LICENSE

This file was deleted.

10 changes: 0 additions & 10 deletions agent-plugins-grpc/Makefile

This file was deleted.

57 changes: 0 additions & 57 deletions agent-plugins-grpc/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions agent-plugins-grpc/go.mod

This file was deleted.

Loading