diff --git a/spec/changelog.yml b/spec/changelog.yml index 7935583a..2f40991b 100644 --- a/spec/changelog.yml +++ b/spec/changelog.yml @@ -13,6 +13,9 @@ - description: Add kibana/security_ai_prompt to support security AI prompt assets. type: enhancement link: https://github.com/elastic/package-spec/pull/871 + - description: Add kibana/security_labs_content to support Security Labs assets. + type: enhancement + link: https://github.com/elastic/package-spec/pull/871 - version: 3.3.6-next changes: - description: Add support for _dev/shared folder. diff --git a/spec/content/kibana/spec.yml b/spec/content/kibana/spec.yml index baa2be6c..99a953b3 100644 --- a/spec/content/kibana/spec.yml +++ b/spec/content/kibana/spec.yml @@ -38,6 +38,15 @@ spec: type: file contentMediaType: "application/json" pattern: '^{PACKAGE_NAME}-.+\.json$' + - description: Folder containing security Security Labs assets + type: folder + name: "security_labs_content" + required: false + contents: + - description: A Security Labs asset + type: file + contentMediaType: "application/json" + pattern: '^{PACKAGE_NAME}-.+\.json$' - description: Folder containing rules type: folder name: "security_rule" diff --git a/test/packages/good_content/kibana/security_labs_content/good_content-security_labs_content_1.json b/test/packages/good_content/kibana/security_labs_content/good_content-security_labs_content_1.json new file mode 100644 index 00000000..03dfbf87 --- /dev/null +++ b/test/packages/good_content/kibana/security_labs_content/good_content-security_labs_content_1.json @@ -0,0 +1,24 @@ +{ + "attributes": { + "raw": { + "document": "---\ntitle: \"2022 Elastic Global Threat Report Announcement\"\nslug: \"2022-elastic-global-threat-report-announcement\"\ndate: \"2022-11-30\"\ndescription: \"Discover our latest findings & strategic recommendations to better stay informed of potential directions threat actors may focus on.\"\nauthor:\n - slug: devon-kerr\nimage: \"gtr-blog-image-720x420.jpg\"\ncategory:\n - slug: reports\n---\n\nToday Elastic Security Labs celebrates another milestone: launching the [2022 Elastic Global Threat Report](https://www.elastic.co/explore/security-without-limits/global-threat-report), our inaugural summary of threat trends, forecasts, and recommendations. We analyzed millions of telemetry events from sources around the world to share these insights with you; all part of our continued commitment to transparency, and our mission to protect the world's data.\n\nYou can find the report [here](https://www.elastic.co/explore/security-without-limits/global-threat-report), we're excited to share it with you.\n" + }, + "title": "2022 Elastic Global Threat Report Announcement", + "slug": "2022-elastic-global-threat-report-announcement", + "date": "2022-11-30", + "description": "Discover our latest findings & strategic recommendations to better stay informed of potential directions threat actors may focus on.", + "author": [ + { + "slug": "devon-kerr" + } + ], + "image": "gtr-blog-image-720x420.jpg", + "category": [ + { + "slug": "reports" + } + ] + }, + "id": "good_content-security_labs_content_1", + "type": "security_labs_content" +}