Coder Social home page Coder Social logo

itrust-sutd / a6-mitm Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 31 KB

A6-MITM is a program which mutates packets using ENIP (Ethernet/IP) and CIP (Common Industrial Protocol) protocols.

License: GNU Affero General Public License v3.0

Python 98.34% Shell 1.66%
cps enip swat cip scapy itrust

a6-mitm's Introduction

A6-MITM

A6-MITM is a program which mutates packets using ENIP (Ethernet/IP) and CIP (Common Industrial Protocol) protocols.

This project has been created to help analyzing the behavior of SWaT, a water treatment testbed built at SUTD (Singapore University of Technology and Design).

Requirements

Hardware

  • Ubuntu OS
  • Laptop with at least two network interfaces

Software

Setup

  1. Ensure the device is physically connected in the middle of two PLCs.
  2. Edit start.sh to bridge the two network adaptors.
  3. Edit mutate.py Line 202 with the incoming Ethernet interface.

Mutation Operators

Mutation Name Code Description
Add static ๐›ฟ ASD(๐›ฟ) Adds/subtracts an absolute, unchanging ๐›ฟ to state measurements
Add Limits ๐›ฟ ALD(๐›ฟ) Adds/subtracts random value between -๐›ฟ and +๐›ฟ to state measurements
Add Random ๐›ฟ ARD(๐›ฟ1,๐›ฟ2) Adds/subtracts a random value between ๐›ฟ1and ๐›ฟ2to state measurements
Set to Zero STZ Sets state measurement to zero
Set to One STO Sets state measurement to one"
Set to Static STS(๐›ฟ) Sets state measurement to static value
Set to Random STR(๐›ฟ1,๐›ฟ2) Set state measurement to a random value between ๐›ฟ1and ๐›ฟ2
Bit Shift Left BSL(๐›ฟ) Sets state measurement is bit-shifted to left by ๐›ฟ bits
Bit Shift Right BSR(๐›ฟ) Sets state measurement is bit-shifted to right by ๐›ฟ bits

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  • Fork the Project
  • Create your Feature Branch (git checkout -b feature/AmazingFeature)
  • Commit your Changes (git commit -m 'Add some AmazingFeature')
  • Push to the Branch (git push origin feature/AmazingFeature)
  • Open a Pull Request

License

Distributed under the GNU License. See LICENSE.txt for more information.

Contact

iTrust - [email protected]

Acknowledgments

a6-mitm's People

Contributors

ifyouaretea avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.