christoftorres / horus Goto Github PK
View Code? Open in Web Editor NEWA framework to detect attacks and trace stolen assets across Ethereum (FC 2021).
A framework to detect attacks and trace stolen assets across Ethereum (FC 2021).
Hi, the example from the README does not yield any results to me.
I guess, the problem is that the tracer does not find all the CALLs that it should find. See the attached trace.json for what it found in my case, using the node Reth hosted on merkle.io.
To debug, it would likely be best if you can check if the expected traces look different with your provider. I've attached a script to make the RPC call with the JS tracer for simple use.
Steps I've performed:
# use --network=host to access the local proxy
docker run --network=host -it christoftorres/horus
cd horus
# merkle RPC does not accept GET apparently, so I replaced it with POST
grep -rl "'GET'" . | xargs sed -i 's/'GET'/'POST'/g'
python3 horus.py -e -tx 0x0ec3f2488a93839524add10ea229e773f6bc891b4eb4794c3337d4495263790b --host localhost --port 8080
python3 horus.py -a
This results in following outputs (note the many 0-byte files):
# ls -l results/
total 4
-rw-r--r-- 1 root root 0 Jun 7 08:54 IntegerOverflow.csv
-rw-r--r-- 1 root root 0 Jun 7 08:54 ParityWalletHack1.csv
-rw-r--r-- 1 root root 0 Jun 7 08:54 ParityWalletHack2.csv
-rw-r--r-- 1 root root 0 Jun 7 08:54 Reentrancy.csv
-rw-r--r-- 1 root root 0 Jun 7 08:54 ReentrancyToken.csv
-rw-r--r-- 1 root root 0 Jun 7 08:54 ShortAddress.csv
-rw-r--r-- 1 root root 0 Jun 7 08:54 UnhandledException.csv
-rw-r--r-- 1 root root 20 Jun 7 08:54 stats.json
# ls -l facts/
total 12
-rw-r--r-- 1 root root 0 Jun 7 08:53 arithmetic.facts
-rw-r--r-- 1 root root 36 Jun 7 08:53 block.facts
-rw-r--r-- 1 root root 0 Jun 7 08:53 call.facts
-rw-r--r-- 1 root root 0 Jun 7 08:53 condition.facts
-rw-r--r-- 1 root root 0 Jun 7 08:53 def.facts
-rw-r--r-- 1 root root 0 Jun 7 08:53 error.facts
-rw-r--r-- 1 root root 0 Jun 7 08:53 selfdestruct.facts
-rw-r--r-- 1 root root 176 Jun 7 08:53 stats.json
-rw-r--r-- 1 root root 0 Jun 7 08:53 storage.facts
-rw-r--r-- 1 root root 0 Jun 7 08:53 throw.facts
-rw-r--r-- 1 root root 509 Jun 7 08:53 transaction.facts
-rw-r--r-- 1 root root 0 Jun 7 08:53 transfer.facts
-rw-r--r-- 1 root root 0 Jun 7 08:53 use.facts
Apart from the souffle version 2.0.2 warning, it does not show any errors/warnings.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.