• Stars
    star
    134
  • Rank 269,430 (Top 6 %)
  • Language
    JavaScript
  • License
    BSD 3-Clause "New...
  • Created about 8 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

OASIS TC Open Repository: Lightweight visualization for STIX 2.0 objects and relationships

cti-stix-visualization

This is an OASIS TC Open Repository. See the Governance section for more information.

The STIX visualization is meant to provide producers and consumers of STIX content with a rapid way to visualize the objects in a STIX JSON file, and the relationships between those objects. The visualization is implemented in HTML, CSS, and JavaScript (using the D3.js library), and is suitable for standalone use β€” either on a hosted server or as a local file β€” or embedded into other applications. Regardless of how deployed, the JavaScript code in this repository does not transmit STIX data to any server; it is strictly processed within the browser in which the code is running, so it is suitable for data which the user does not wish to share.

It visualizes STIX 2.0 content using d3, and is 100% browser-based, meaning that you can use it without sending all your data to the server (great!)

How does it work?

This code makes a lot of assumptions! It assumes:

  • The source - a file you upload, text you paste, or an external server - provides valid JSON
  • That JSON has a bunch of keys and values, some of which are arrays
  • Everything inside those arrays is an SDO, with an ID, type, and ideally title
  • One of those arrays contains a list of relationships between the other SDOs provided

This should match most STIX 2.0 content inside a bundle. For a slightly out-of-date example, look at test.json.

Neat, a graph! What next?

Click on nodes or paths to get more detailed information for that element (and to pin nodes in place). If you want to unpin a pinned node, double-click it.

If you want to load another JSON file, just click on the title at the top of the page to go back to the input options.

How can I use it?

Go to http://oasis-open.github.io/cti-stix-visualization. Upload a JSON file, paste some valid JSON text, or provide the URL for an external JSON file. The URL for an external JSON file can be provided on the main page or as a URL parameter: https://oasis-open.github.io/cti-stix-visualization/?url=https://raw.githubusercontent.com/oasis-open/cti-stix-visualization/master/test.json.

Customizing the graph's appearance

You can also optionally customize the text and icons associated with each object type, shown on the graph. There is a separate field that accepts JSON (format is specified on the visualizer page), and allows you to specify a custom icon and/or a custom property to be shown. You can specify one custom icon and/or display property per type of object; you can overwrite the icon and/or text displayed for existing STIX object types, or for your own custom object types. Note that the custom icon must be located in the visualizer's icons directory. Alternatively, you can specify the custom icon via a web URL, in which case you must specify the protocol (e.g. https).

Integrating the visualizer

You can integrate the visualizer into your own web application. The visualizer is implemented as an AMD module that exports the Viz class. You can create a new Viz instance and visualize your STIX content using code like the following:

visualizer = new stix2viz.Viz(mySvgElement);
visualizer.vizStix(content);

Finally, you can use visualizer.vizReset() if you need to clear the graph.

Technical Details

Documenting AMD is beyond the scope of this document. There are various implementations of it; this repository includes requirejs. Importing and using AMD modules generally looks like:

require(["module1", "module2"], function(module1, module2) {
    /* Do stuff with the modules */
});

So you need to add your AMD implementation to your web page, and then use modules as above. With respect to stix2viz, you may need further configuration to ensure the module is found, especially since it was written to work as a Jupyter notebook extension. You may consult index.html and application.js for inspiration.

How do I run it locally?

To run a local copy of the STIX visualizer, just point your browser to index.html after you clone the repo.

Acknowlegements

The icons used in the generated graphs are by Bret Jordan, licensed under the Creative Commons Attribution-ShareAlike (CC BY-SA) License, Version 4.0.

Governance

This GitHub public repository ( https://github.com/oasis-open/cti-stix-visualization ) was proposed and approved [bis] by the OASIS Cyber Threat Intelligence (CTI) TC as an OASIS TC Open Repository to support development of open source resources related to Technical Committee work.

While this TC Open Repository remains associated with the sponsor TC, its development priorities, leadership, intellectual property terms, participation rules, and other matters of governance are separate and distinct from the OASIS TC Process and related policies.

All contributions made to this TC Open Repository are subject to open source license terms expressed in the BSD-3-Clause License. That license was selected as the declared "Applicable License" when the TC Open Repository was created.

As documented in "Public Participation Invited", contributions to this OASIS TC Open Repository are invited from all parties, whether affiliated with OASIS or not. Participants must have a GitHub account, but no fees or OASIS membership obligations are required. Participation is expected to be consistent with the OASIS TC Open Repository Guidelines and Procedures, the open source LICENSE designated for this particular repository, and the requirement for an Individual Contributor License Agreement that governs intellectual property.

Maintainers

TC Open Repository Maintainers are responsible for oversight of this project's community development activities, including evaluation of GitHub pull requests and preserving open source principles of openness and fairness. Maintainers are recognized and trusted experts who serve to implement community goals and consensus design preferences.

Initially, the associated TC members have designated one or more persons to serve as Maintainer(s); subsequently, participating community members may select additional or substitute Maintainers, per consensus agreements.

Current Maintainers of this TC Open Repository

About OASIS TC Open Repositories

Feedback

Questions or comments about this TC Open Repository's activities should be composed as GitHub issues or comments. If use of an issue/comment is not possible or appropriate, questions may be directed by email to the Maintainer(s) listed above. Please send general questions about TC Open Repository participation to OASIS Staff at [email protected] and any specific CLA-related questions to [email protected].

More Repositories

1

cti-python-stix2

OASIS TC Open Repository: Python APIs for STIX 2
Python
358
star
2

cti-taxii-server

OASIS TC Open Repository: TAXII 2 Server Library Written in Python
Python
117
star
3

cti-stix2-json-schemas

OASIS TC Open Repository: Non-normative schemas and examples for STIX 2
ANTLR
109
star
4

cti-taxii-client

OASIS TC Open Repository: TAXII 2 Client Library Written in Python
Python
108
star
5

cti-documentation

OASIS TC Open Repository: GitHub Pages site for STIX and TAXII
SCSS
93
star
6

cti-stix-common-objects

OASIS Cyber Threat Intelligence (CTI) TC: A repository for commonly used STIX objects in order to avoid needless duplication. https://github.com/oasis-open/cti-stix-common-objects
80
star
7

legaldocml-akomantoso

OASIS TC Open Repository: Schema files, examples, exemplificative implementations and libraries, and documentation related to the LegalDocML TC and Akoma Ntoso schema
57
star
8

cti-training

OASIS TC Open Repository: Providing a collection of CTI-related training materials
48
star
9

cti-stix-validator

OASIS TC Open Repository: Validator for STIX 2.0 JSON normative requirements and best practices
Python
48
star
10

cti-stix-elevator

OASIS Cyber Threat Intelligence (CTI) TC Open Repository: Convert STIX 1.2 XML to STIX 2.x JSON
Python
48
star
11

cti-pattern-matcher

OASIS TC Open Repository: Match STIX content against STIX patterns
Python
43
star
12

cti-stix-generator

OASIS Cyber Threat Intelligence (CTI) TC: A tool for generating STIX content for prototyping and testing. https://github.com/oasis-open/cti-stix-generator
Python
37
star
13

tosca-community-contributions

OASIS TC Open Repository: Manages TOSCA profiles, tests, and templates that are maintained by the TOSCA community. They are intended to be used as examples to help developers get started with TOSCA and to test compliance of TOSCA implementations with the standard.
Shell
37
star
14

cti-pattern-validator

OASIS TC Open Repository: Validate patterns used to express cyber observable content in STIX Indicators
Python
24
star
15

csaf-parser

OASIS TC Open Repository: CSAF Parser tool for parsing and checking the syntax of the Common Vulnerability Reporting Framework (CVRF) content
Python
23
star
16

cti-stix-slider

OASIS TC Open Repository: The repository cti-stix-slider supports development of a Python application to convert STIX 2.0 content to STIX 1.x content
Python
21
star
17

csaf-documentation

OASIS TC Open Repository: A GitHub repository for management of non-normative information about the work of the CSAF Technical Committee, including documentation
CSS
19
star
18

odata-rapid

Rapid - Specification, tools and libraries to support the development and adoption of simple REST-based APIs.
JavaScript
17
star
19

cti-sep-repository

OASIS TC Open Repository: STIX Enhancement Proposals (SEPs) https://github.com/oasis-open/cti-sep-repository
Shell
16
star
20

dita-stylesheets

OASIS TC Open Repository: Developing style sheets and other resources that can be used to build OASIS-styled publications from DITA source
XSLT
14
star
21

openc2-lycan-python

OASIS TC Open Repository: A GitHub public repository for development of a python library to transform between data-interchange formats (such as JSON) and python language objects
Python
11
star
22

dita-lightweight

OASIS TC Open Repository: Schema files, tools and documentation related to the Lightweight DITA Subcommittee.
9
star
23

tac-ontology

OASIS Threat Actor Context (TAC) TC: Creating an ontology for expressing the rich context around Threat Actors. https://github.com/oasis-open/tac-ontology
9
star
24

openc2-jadn-software

OASIS TC Open Repository: Development and maintenance of JADN (JSON Abstract Data Notation), a JSON document format for defining abstract schemas.
Python
8
star
25

mqtt-sn-sample-resources

OASIS TC Open Repository: Contains a collection of MQTT-SN applications and libraries in any programming language, examples, samples and other educational materials. https://github.com/oasis-open/mqtt-sn-sample-resources
Java
7
star
26

dita-rng-converter

OASIS TC Open Repository: The DITA RNG Converter provides cross-platform tools for generating DITA-conforming DTD- and XSD-format versions of RELAX NG DITA grammars: document type shells, vocabulary modules, and constraint modules. It makes it as easy as possible to develop and maintain DITA grammars by allowing use of RELAX NG syntax.
XSLT
7
star
27

openc2-lycan-java

OASIS TC Open Repository: A GitHub public repository for development of a java library to transform between data-interchange formats (such as JSON) and java language objects
Java
7
star
28

legalruleml-repo

OASIS TC Open Repository: Public GitHub repository for developing and distributing good examples in order to share knowledge about the correct application of LegalRuleML standard
5
star
29

openc2-oif-device

OASIS TC Open Repository: Supports development OpenC2 Integration Framework (OIF) Device
Python
5
star
30

openc2-lycan-beam

OASIS TC Open Repository: Developing a collection of applications and libraries, coded in languages that run on the BEAM virtual machine (e.g., erlang, elixir), for the purpose of implementing OpenC2
Erlang
5
star
31

cti-marking-prototype

OASIS TC Open Repository: Prototype for processing granular data markings in STIX
Python
4
star
32

openc2-oif-orchestrator

OASIS TC Open Repository: Supports development OpenC2 Integration Framework (OIF) Orchestrator
Python
4
star
33

dita-specializations

OASIS Darwin Information Typing Architecture (DITA) TC: This repository provides storage for DITA specializations that were developed by the DITA TC, but which are no longer part of the DITA standard. https://github.com/oasis-open/dita-specializations
4
star
34

cacao-json-schemas

JSON validation schemas for CACAO Playbooks
4
star
35

emergency-emf

OASIS Emergency Management TC: The OASIS Emergency Management Framework (EMF) is a reference implementation and toolkit for enabling standardized emergency information exchange. https://github.com/oasis-open/emergency-emf
3
star
36

cti-cybox3-json-schemas

OASIS TC Open Repository: Non-normative schemas and examples for CybOX 3
3
star
37

cti-python-stix2-extensions

OASIS Python-STIX2 API extensions: a repository for python-stix2 API code developed for specification candidate extension definitions.
Jupyter Notebook
3
star
38

openc2-custom-aps

OASIS TC Open Repository: Providing a publicly available repository for Custom Actuator Profiles and supporting collaborative development of OpenC2 Custom Actuator Profiles. https://github.com/oasis-open/openc2-custom-aps
3
star
39

openc2-iosacl-adapter

OASIS OpenC2 TC: A prototype implementation in R to transform between OpenC2 and Cisco ACL formats. The adapter supports access control list (ACL) management. https://github.com/oasis-open/openc2-iosacl-adapter
R
2
star
40

openc2-ocas

OASIS TC Open Repository: OpenC2 API Simulator (ocas) is an erlang/OTP application written in Erlang to demonstrate and exercise the OpenC2 specification
Erlang
2
star
41

openeox

OASIS TC Open Repository: OpenEoX Awareness and Adoption
1
star
42

tac-common-semantic-individuals

OASIS Threat Actor Context (TAC) TC: A repository for commonly used semantic individuals in order to avoid needless duplication. https://github.com/oasis-open/tac-common-semantic-individuals
1
star
43

openc2-compatibility

OASIS TC Open Repository: Supporting the capture of OpenC2 core design principles and development of implementation guidelines so that implementers can agree on language and protocols to build interoperable systems
1
star
44

dita-adoption-public

OASIS DITA Adoption TC: Helping promote the use and understanding of the DITA XML standard. https://github.com/oasis-open/dita-adoption-public
1
star
45

openc2-pub-sub-on-bsd

OASIS TC Open Repository: A prototype reference implementation that demonstrates OpenC2 working within a pub/sub environment
C
1
star
46

openc2-reactor-master

OASIS TC Open Repository: Reactor-master is a feedback-driven GUI master/actuator orchestration framework for the OpenC2 language, written in Python; it provides a way to administer multiple reactor-relay deployments
1
star
47

cti-interop

OASIS TC Open Repository: Advancing Cyber Threat Intelligence (CTI) Interoperability, including issue tracking, development of test-data useful for STIXPreferred, and management of other supporting content for the STIXPreferred program, which is open to all
1
star