center-for-threat-informed-defense / tram

TRAM is an open-source platform designed to advance research into automating the mapping of cyber threat intelligence reports to MITRE ATT&CK®.

Home Page:https://ctid.mitre-engenuity.org/our-work/tram/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation instructions need significant overhaul

Lex1020 opened this issue · comments

I'm trying to install TRAM but the installation instructions leave a lot to be desired.

Simply put the docker compose file fails immediately because it cannot locate the Dockerfile. If It give that an absolute path then it gets as far as trying to pip install which fails because it can't locate the requirements.txt file. I can install those manually but then I get an error that it appears not to be a python project because it's missing a pyproject.toml file despite that file being in the directory that the python script is looking in.

Is there a more complete installation guide for this because simply running docker-compose -f docker-compose.yml up like it says in the instructions is not enough.

Thank you for bringing this to my attention. I opened this PR with some revamped documentation.

Can you try the instructions on this branch and let me know if this solves your problem? https://github.com/center-for-threat-informed-defense/tram/tree/169-install-instructions#installation

I tried those steps and got this error:

root@tram:~# docker-compose up Building tram unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /Dockerfile: no such file or directory ERROR: Service 'tram' failed to build : Build failed

If I move the docker-compose.yml file in the tram folder then I get this error;

root@tram:~/tram# docker-compose up Creating network "tram_default" with the default driver Creating volume "tram_tram" with default driver Creating volume "tram_tram_static" with default driver Building tram unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /root/Dockerfile: no such file or directory ERROR: Service 'tram' failed to build : Build failed

Ahh okay, I see. I didn't realize that it was failing in the build step. Can you try running docker-compose up --no-build instead? That should force it to download images from Docker Hub instead of building them locally. If that works for you, I will remove the build: keys from docker-compose.yml.

commented

The same happened to me, tram came up when I pulled the docker images manually, however it seems broken.

I can login and everything but when I click to analyze a document nothing appears. This happens with both the test data already there and any document I manage to upload.

Tram will que it and say that I have 160 ish things to review but when I click analyze; nothing.

I removed the build keys from docker-compose.yml which should solve this issue if you use the new version of docker-compose.yaml. If you find the installation instructions are still not adequate, please re-open the issue and I'll take another look.

I can login and everything but when I click to analyze a document nothing appears. This happens with both the test data already there and any document I manage to upload.

The bootstrap training data is large and it can take a few seconds to load. (There's no loading indicator but it should eventually load.) There's a small test file in the repository that you can upload to make sure that the upload/analyze workflow is functioning: https://github.com/center-for-threat-informed-defense/tram/blob/master/tests/data/simple-test.docx

If you find that even this test file is not working, please open a new issue and we can work out what's going on.