Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

[Bug] TAXII 2.0 Server Has Been Retired

Aberta
#183 2 comentários 1 reação 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
35/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Estagnada
Stack de tecnologia
python
Domínio
api, backend

Direção de pesquisa

Comece em navlayers/exporters/matrix_gen.py, especificamente no método MatrixGen.init e na configuração da fonte TAXII. Reproduza o travamento com navlayers.ToExcel(domain="enterprise", source="taxii") e verifique se os exportadores Excel e SVG recuperam os dados e produzem a saída esperada sem travar.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

bug

Expected Behavior

Using the exporters such as Excel or SVG using the default taxii source should retrieve the proper data and produce the expected exported output.

Actual Behavior

navlayers.ToExcel() hangs because the server "https://cti-taxii.mitre.org/taxii" has been retired as of December 18th blog link

Steps to Reproduce the Problem

For example: calling the following function navlayers.ToExcel(domain="enterprise", source="taxii") just hangs

Possible Solution

Migrating to the TAXII 2.1 server. The problem exists in navlayers/exporters/matrix_gen.py in the __init__ method of the MatrixGen class.

class MatrixGen:
    """A MatrixGen object."""

    def __init__(self, source="taxii", resource=None, domain="enterprise"):
        """Initialize - Creates a matrix generator object.

        :param source: Source to utilize (taxii, remote, or local)
        :param resource: string path to local cache of stix data (local) or url of an ATT&CK Workbench (remote)
        """
        self.convert_data = {}
        self.collections = dict()
        if source.lower() not in ["taxii", "local", "remote", "memorystore"]:
            logger.error(
                f"Unable to generate matrix, source {source} is not one of [taxii | remote | local | memorystore]"
            )
            raise ValueError

        if source.lower() == "taxii":
            self.server = Server("https://cti-taxii.mitre.org/taxii")
            self.api_root = self.server.api_roots[0]
            for collection in self.api_root.collections:
                if collection.title != "PRE-ATT&CK":
                    tc = Collection("https://cti-taxii.mitre.org/stix/collections/" + collection.id)
                    self.collections[collection.title.split(" ")[0].lower()] = TAXIICollectionSource(tc)
Linguagem predominante
HTML
Estrelas
752
Forks
175
Merge médio
12min
PRs com merge (30d)
3

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de mitre-attack/mitreattack-python

Todas as issues de mitre-attack/mitreattack-python

Issues semelhantes

Mais issues de Backend & API Design

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.