Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #9 from Zeerg/develop
Browse files Browse the repository at this point in the history
Various fixes
  • Loading branch information
Zeerg authored Sep 3, 2021
2 parents 0244c2a + 07bdbca commit ff859b3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ FROM alpine:latest
WORKDIR /
COPY --from=build /helix-honeypot /helix-honeypot
RUN addgroup -S helix && adduser -S helix -G helix
USER helix

EXPOSE 8000

Expand Down
15 changes: 10 additions & 5 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
version: 3.1

version: '3.7'

services:
helix-honeypot:
helix-honeypot-ad:
build: ./
ports:
- "8000:8000"
entrypoint: [/helix-honeypot, -mode=ad]
volumes:
- /dev/random:/dev/random
helix-honeypot:
build: ./
ports:
- "8000:8000"
entrypoint: [/helix-honeypot, -mode=ad]
- "80:8000"
2 changes: 1 addition & 1 deletion handler/openapiHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func gzipHelper(data []byte) []byte {
func computeETag(data []byte) string {
return fmt.Sprintf("\"%X\"", sha512.Sum512(data))
}
// OpenAPI Handler becuase unless the swagger doc is cached locally it's transferred on every request :(
// OpenAPI Handler just sends the swagger doc via proto
func OpenApiHandler(c echo.Context) error {
openApiDoc, err := openapi_v2.ParseDocument(embedGet("v1.19.7_openapi.yaml"))
if err != nil {
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![Docker Image CI](https://github.com/Zeerg/helix-honeypot/actions/workflows/docker-image.yml/badge.svg)](https://github.com/Zeerg/helix-honeypot/actions/workflows/docker-image.yml)

# Introduction
Helix is a honeypot that serves two primary purposes. When running in K8s mode it listens and responds as a typical K8s api server(most endpoints). When running in active defense mode the api responses become massive and are meant to disrupt typical internet scanners.
Helix is a honeypot that serves two primary purposes. When running in K8s mode it listens and responds as a typical K8s api server(most endpoints). When running in active defense a never ending response is generated on all api endpoints.

# Usage
```
Expand All @@ -20,10 +20,10 @@ Clone this repo
```
docker-compose up -d
```
Setup your kubeconfig for helix
Setup your kubeconfig for helix
```
- cluster:
server: http://127.0.0.1:8000
server: http://127.0.0.1:80
name: helix
- context:
cluster: helix
Expand Down

0 comments on commit ff859b3

Please sign in to comment.