Giter Club home page Giter Club logo

ecosoc.siot's Introduction

SIoT
====

Securing Internet of Things.

This projects aims to protect code of Internet of Things (IoT) aggainst attacks 
like Buffer Overflow, Integer Overflow, SQL Injection, etc. 
The atual version focus on Buffer Overflow. 
Our solution, SIoT, makes use of a pioneering solution to pinpoint vulnerabilities: we crosscheck data from communicating nodes.
See more details in our SBRC Paper (Portuguese): http://sbrc2014.ufsc.br/anais/files/trilha/ST14-1.pdf

Directory Organization: 
-----------------------
examples: there are basic, client/server and contiki examples.

src: there are two auxiliar Pass(PADriver and AliasSets), a Merge Pass used by SIoT to merge .bc files, NetLevel used 
     to find the level of sends and receives and the NetDepGraph directory. 
     In NetDepGraph directory there are 3 Pass: InputDep, NetDepGraph and NetVulArrays. 
     InputDep find the user inputs including files and network. 
     NetDepGraph creates the DepGraph of distributed system. 
     And NetVulArray crosscheck the paths between inputs and Arrays using NetDepGraph and InputDep. 

Prerequisites:
--------------
LLVM 3.3 - (See http://llvm.org/docs/GettingStarted.html or use the script install-llvm.sh).

Boost (http://www.boost.org/ or in Ubuntu: sudo apt-get install libboost-program-options-dev).

SIoT build:
-----------
echo "Build SIoT"
mkdir siot-build
cd siot-build
cmake -DCMAKE_BUILD_TYPE=Debug -DLLVM_REQUIRES_RTTI=1 -G "Eclipse CDT4 - Unix Makefiles" -DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=TRUE -DCMAKE_ECLIPSE_MAKE_ARGUMENTS=-j4 -DLLVM_REQUIRES_EH=1 ../ecosoc
make -j4


Run SIoT:
---------
-Build the client and daemon bc files.

-Copy the file "siot" executable to the folder where those bc files are or put it in the PATH.

-Create the run-config.txt like the exexample in examples/samples/run-config.txt.

-The user needs to make a text file containing, in each line and separeted by comma, the client, daemon, send function and receive function names.

-> See an example in examples/samples/test.txt.



Build ContikiOS:
---------
-To build ContikiOS we can download it with the script download-contiki.sh, doing:
./download-contiki.sh

-To compile it, we can use the script compile-contiki.sh, that unzip the downloaded file,
 configure it, and compile the hello-world example application using gcc with address-sanitizer:
./compile-contiki.sh

-To compile any example, we have 3 scripts to attend some options, they are:
makegccasan - it compiles using gcc with address-sanitizer
makeclangasan - it compiles using llvm with address-sanitizer
makeclang - it compiles using llvm WITHOUT address-sanitizer - use this mode to work with SIoT

ecosoc.siot's People

Contributors

teixeiracl avatar

Watchers

 avatar  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.