skip to navigation
skip to content

medallion 0.1.0

A TAXII 2.0 Server.

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

medallion is a minimal implementation of a TAXII 2.0 Server in python.

medallion does NOT support the following features of the TAXII 2.0 specification:

  • Sorting
  • Pagination
  • Content-Types other than the default
  • Pending Add Objects responses (all Add Objects request process all objects before sending back a response)

Although medallion conforms to most of the interoperability specification, it should not be used in a production environment. Its main purpose is for use in testing scenarios of STIX-based applications that use the python-stix2 API. It has been developed in conjunction with cti-taxii-client but should be compatible with any TAXII client which makes HTTP requests as defined in TAXII 2.0 specification.

medallion has been designed to be a simple front-end REST server providing access to the endpoints defined in that specification. It uses the python framework - Flask. medallion depends on back-end “plugins” which handle the persistance of the TAXII data and metadata. The TAXII specification is agnostic to what type of data a TAXII server stores, but this will usually be STIX 2 content.

Two back-end plugins are provided with medallion: the Memory back-end and the MongoDB back-end. The Memory back-end persists data “in memory”. It is initalized using a json file that contains TAXII data and metadata. It is possible to save the current state of the in memory store, but this back-end is really intended only for testing purposes. The MongoDB backend is somewhat more robust and makes use of a MongoDB server, installed independently. The MongoDB back-end can only be used if the pymongo python package is installed. An error message will result if it is used without that package.


The easiest way to install medallion is with pip:

$ pip install medallion


To run medallion:

$ python medallion/scripts/ <config-file>

The <config_file> contains:

  • configuration information for the backend plugin
  • a simple user name/password dictionary

To use the Memory back-end plug, include the following in the <config-file>:

"backend": {
    "type": "memory",
    "data_file": <path to json file with initial data>

To use the Mongo DB back-end plug, include the following in the <config-file>:

"backend": {
    "type": "mongodb",
    "url": <Mongo DB server url>  # e.g., "mongodb://localhost:27017/"

Note: A Mongo DB should be available at some URL when using the Mongo DB back-end

As required by the TAXII specification, medallion supports BasicHTTP authorization. However, the user names and passwords are currently stored in the <config_file> in plain text.

Here is an example:

"users": {
    "admin": "Password0",
    "user1": "Password1",
    "user2": "Password2"

The authorization is enabled using the python package flask_httpauth. Authorization could be enhanced by changing the method “decorated” using @auth.get_password in medallion/

We welcome contributions for other back-end plugins.


This GitHub public repository ( ) was created at the request of the OASIS Cyber Threat Intelligence (CTI) TC as an OASIS Open Repository to support development of open source resources related to Technical Committee work.

While this 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 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 Open Repository was created.

As documented in “Public Participation Invited”, contributions to this OASIS 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 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.


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 Open Repository


Questions or comments about this 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 Open Repository participation to OASIS Staff at and any specific CLA-related questions to

File Type Py Version Uploaded on Size
medallion-0.1.0-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2017-09-14 21KB