Git Product home page Git Product logo

cloud-native-honeypot's Introduction

cloud-native-honeypot

Honeypots made for a cloud native world.

Only low-interaction ones currently (but see this issue).

Quickstart

Deploying the Honeypot

  1. Pick an AWS VPC you want to deploy the honeypot to
  2. Pick a subnet from that VPC to deploy the honeypot to
  3. Get the honeypot.yaml Cloudformation stack template from the latest of the aws-cloudformation Github Releases
  4. Deploy the stack template, inputting the VPC id and subnet id as stack parameters

You should get 1 Fargate task running on ECS for the honeypot itself and an associated Eventbridge event bus.

Reacting to Events Published by the Honeypot

When hit with GET requests, the task will publish events to the event bus.

You can add an Evenbridge rule to the event bus to react to the events.

For example, you could add a rule targeting events with source cloud-native-honeypot that invokes an SNS topic, which then notifies humans of the events.

Alternatives

There are several alternatives to this that are worth considering

Alerting Off of VPC Flow Logs

Reserving an ip address with an ENI, then alerting on any flow logs with a matching destination ip address is another way to achieve the same effect.

However it's less extensible than the approach here, as it can't be generalized to become a "high-interaction" honeypot that emulates a realistic server.

Commercial Options

If you have the means, paying for a honeypot from a vendor (e.g. ThinkstCanary) is likely a better option.

Open Source Options

There are other open source options out there to self-host (e.g. T-Pot) but I didn't find any that seemed easy to deploy and integrate into cloud resources.

More Information

Check out the subproject README.md files for more information

cloud-native-honeypot's People

Contributors

grunet avatar

Watchers

 avatar

cloud-native-honeypot's Issues

Create a "high-interaction" honeypot server

The simple_http server is currently a "low interaction" honeypot. Meaning that an attacker isn't likely to spend time (i.e. interactions) exploring the server, giving away valuable information in the process. (It's really probably most valuable right now for detecting port scans following network intrusion.)

However it (or a new server) could be written to simulate a realistic server, one that engages the attacker for longer.

There are lots of OSS examples of these so it probably makes sense to start by researching those.

Cache cfn-guard in CI

This would improve supply chain security by limiting the number of times it has to be downloaded from the public internet

ACTION REQUIRED: Changes to pulling Chainguard Images

Hey there Chainguard here.

We noticed that you are using Chainguard Images, thank you! We wanted to make you aware of an upcoming change that will impact your project.

Starting August 16, 2023 public users will no longer be able to pull images from our registry (cgr.dev/chainguard) by tags other than latest or latest-dev. Please see the announcement for more information.

You are currently using the following.

In https://github.com/Grunet/cloud-native-honeypot/blob/39864c27b0e6a1004146865c799e26fd5205aafb/packages/honeypot/src/Dockerfile:

  • cgr.dev/chainguard/python:3.11.4

Our goal is to prevent your project from experiencing any disruptions. Please see the migration guide for options.

If there's more we can do to help please reply to this issue or email us at [email protected].

Thank you!

Cache cfn-lint in CI

This would improve supply chain security by limiting the number of times it has to be downloaded from the public internet

Cache poetry in CI

This would improve supply chain security by limiting the number of times it has to be downloaded from the public internet

Dependabot Vulnerability in Certifi, A Transitive Dependency of Moto

https://github.com/Grunet/cloud-native-honeypot/security/dependabot/1 has more details, copied below:

"Certifi 2023.07.22 removes root certificates from "e-Tugra" from the root store. These are in the process of being removed from Mozilla's trust store.

e-Tugra's root certificates are being removed pursuant to an investigation prompted by reporting of security issues in their systems. Conclusions of Mozilla's investigation can be found here."

Given that this has to do with CAs I'm assuming moto doesn't have any usage of the functionality since it's a mocking library, and certifi is just getting pulled in because moto depends on requests which depends on certifi.

Also moto is only a dev dependency.

The only thing that needs to be changed is the version of certifi being pulled in, so presumably uninstalling moto and resinstalling it would cause the latest version (released on 7/22) to pull in.

Since that's a little recent and it's not urgent, tackling this as part of the next monthly maintenance probably makes sense

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.