Skip to content

A tool to automate FSM measurement of ARM binaries as per COSMIC guidelines.

Notifications You must be signed in to change notification settings

Shiro-Raven/COSMIC-arm-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IWSM-MENSURA 2020: COSMIC Functional Size of ARM Assembly Programs [Paper]

This repo contains the source code of the prototype of the automated measurement tool mentioned in the published work.

All measurements are based on the Operation pseudo-code present in the official ARM specification of their A32/T32 architecture, found here.

Pre-requisites

  • Python (with tkinter installed)
  • An ARM (Cross) Compiler of your choice. An example of a cross-compiler is this.

Usage (Linux)

  • Run gui.py.
  • Select a file following the criteria mentioned in the paper.
  • Click on Measure CFPs and inspect the results.
  • If you decide to save the results, the output will be saved in the out directory.

TODO

  • Make it optional to include native C headers from the measurement.
  • Complete the supported ARMasm list
  • (Experimental) Use Regex to parse instructions more rigorously.

Contact

If you face any problems using this tool, please create an issue, or get in touch with me through my personal email. If you find this repository useful for your research, please cite us:

@inproceedings{Darwish2020COSMICFS,
  title={COSMIC Functional Size of ARM Assembly Programs},
  author={A. Darwish and Hassan Soubra},
  booktitle={IWSM-Mensura},
  year={2020}
}

About

A tool to automate FSM measurement of ARM binaries as per COSMIC guidelines.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages