{"id":21845179,"url":"https://github.com/giterlizzi/perl-stix","last_synced_at":"2026-04-19T07:32:23.341Z","repository":{"id":262684726,"uuid":"875356533","full_name":"giterlizzi/perl-STIX","owner":"giterlizzi","description":"Structured Threat Information Expression (STIX) Perl interface","archived":false,"fork":false,"pushed_at":"2024-11-19T21:41:33.000Z","size":233,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T08:49:53.939Z","etag":null,"topics":["cti","perl","perl5","stix","stix2"],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/STIX","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/giterlizzi.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-19T18:53:13.000Z","updated_at":"2024-11-19T21:40:34.000Z","dependencies_parsed_at":"2024-11-13T18:49:49.274Z","dependency_job_id":null,"html_url":"https://github.com/giterlizzi/perl-STIX","commit_stats":null,"previous_names":["giterlizzi/perl-stix"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giterlizzi%2Fperl-STIX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giterlizzi%2Fperl-STIX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giterlizzi%2Fperl-STIX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giterlizzi%2Fperl-STIX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/giterlizzi","download_url":"https://codeload.github.com/giterlizzi/perl-STIX/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244828690,"owners_count":20517155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cti","perl","perl5","stix","stix2"],"created_at":"2024-11-27T23:08:26.606Z","updated_at":"2026-04-19T07:32:23.293Z","avatar_url":"https://github.com/giterlizzi.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Release](https://img.shields.io/github/release/giterlizzi/perl-STIX.svg)](https://github.com/giterlizzi/perl-STIX/releases) [![Actions Status](https://github.com/giterlizzi/perl-STIX/workflows/linux/badge.svg)](https://github.com/giterlizzi/perl-STIX/actions) [![License](https://img.shields.io/github/license/giterlizzi/perl-STIX.svg)](https://github.com/giterlizzi/perl-STIX) [![Starts](https://img.shields.io/github/stars/giterlizzi/perl-STIX.svg)](https://github.com/giterlizzi/perl-STIX) [![Forks](https://img.shields.io/github/forks/giterlizzi/perl-STIX.svg)](https://github.com/giterlizzi/perl-STIX) [![Issues](https://img.shields.io/github/issues/giterlizzi/perl-STIX.svg)](https://github.com/giterlizzi/perl-STIX/issues) [![Coverage Status](https://coveralls.io/repos/github/giterlizzi/perl-STIX/badge.svg)](https://coveralls.io/github/giterlizzi/perl-STIX)\n\n# STIX - Perl extension for STIX (Structured Threat Information Expression)\n\n## Synopsis\n\n```.pl\n# Object-Oriented interface\n\nuse STIX::Indicator;\nuse STIX::Common::Timestamp;\nuse STIX::Common::Bundle;\n\nmy $bundle = STIX::Common::Bundle-\u003enew;\n\npush @{ $bundle-\u003eobjects }, STIX::Indicator-\u003enew(\n    pattern_type    =\u003e 'stix',\n    created         =\u003e STIX::Common::Timestamp-\u003enew('2014-05-08T09:00:00'),\n    name            =\u003e 'IP Address for known C2 channel',\n    description     =\u003e 'Test description C2 channel.',\n    indicator_types =\u003e ['malicious-activity'],\n    pattern         =\u003e \"[ipv4-addr:value = '10.0.0.0']\",\n    valid_from      =\u003e STIX::Common::Timestamp-\u003enew('2014-05-08T09:00:00'),\n);\n\n# Functional interface\n\nuse STIX qw(:all);\n\nmy $bundle = bundle(\n    objects =\u003e [\n      indicator(\n        pattern_type    =\u003e 'stix',\n        created         =\u003e '2014-05-08T09:00:00',\n        name            =\u003e 'IP Address for known C2 channel',\n        description     =\u003e 'Test description C2 channel.',\n        indicator_types =\u003e ['malicious-activity'],\n        pattern         =\u003e \"[ipv4-addr:value = '10.0.0.0']\",\n        valid_from      =\u003e '2014-05-08T09:00:00',\n      )\n    ]\n);\n\n\n# Validate\n\nmy @errors = $bundle-\u003evalidate;\n\nsay $_ for @errors;\n\n\n# Render in JSON\n\nsay $bundle;\n\n# {\n#    \"id\" : \"bundle--eb2f23f1-8084-4847-8fe6-a5bc95cb024c\",\n#    \"objects\" : [\n#       {\n#          \"created\" : \"2014-05-08T09:00:00.000Z\",\n#          \"description\" : \"Test description C2 channel.\",\n#          \"id\" : \"indicator--3b67f5b2-a1dc-4464-8617-d8bd371079ca\",\n#          \"indicator_types\" : [\n#             \"malicious-activity\"\n#          ],\n#          \"modified\" : \"2014-05-08T09:00:00.000Z\",\n#          \"name\" : \"IP Address for known C2 channel\",\n#          \"pattern\" : \"[ipv4-addr:value = '10.0.0.0']\",\n#          \"pattern_type\" : \"stix\",\n#          \"spec_version\" : \"2.1\",\n#          \"type\" : \"indicator\",\n#          \"valid_from\" : \"2014-05-08T09:00:00.000Z\"\n#       }\n#    ],\n#    \"type\" : \"bundle\"\n# }\n\n```\n\n## Install\n\nUsing Makefile.PL:\n\nTo install `STIX` distribution, run the following commands.\n\n    perl Makefile.PL\n    make\n    make test\n    make install\n\nUsing `App::cpanminus`:\n\n    cpanm STIX\n\n\n## Documentation\n\n- `perldoc STIX`\n- https://metacpan.org/release/STIX\n- [OASIS-Open] STIX Version 2.1 (https://docs.oasis-open.org/cti/stix/v2.1/os/stix-v2.1-os.html)\n\n## Copyright\n\n- Copyright 2024 © Giuseppe Di Terlizzi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiterlizzi%2Fperl-stix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiterlizzi%2Fperl-stix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiterlizzi%2Fperl-stix/lists"}