This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| | コード | カテゴリ名 | 概要 | 主に対応するCSF関数 | | |
| | --- | ------------------------ | ----------------------------------------------- | ----------------------------- | | |
| | A | ガバナンス・経営/戦略 | サイバーリスクを経営リスクとして扱い、方針・投資・体制を決める | Govern, Identify | | |
| | B | リスクマネジメント・コンプライアンス・法規制 | ISMS、リスク評価、規制・標準(個人情報保護法、GDPR、NIS2、ISO 27001など) | Govern, Identify | | |
| | C | ポリシー・標準・プロセス・教育 | セキュリティポリシー、標準、手順、教育・啓発 | Govern, Protect | | |
| | D | セキュリティアーキテクチャ/設計 | エンタープライズ/ネットワーク/クラウド/ゼロトラストなどの設計 | Identify, Protect | | |
| | E | インフラ・ネットワーク・クラウドセキュリティ | OS・NW・クラウド基盤のセキュア構成、ハードニング、運用 | Protect | | |
| | F | ID・アクセス管理(IAM/PAM) | 認証・認可、シングルサインオン、多要素認証、特権ID管理 | Protect | | |
| | G | アプリケーション/ソフトウェアセキュリティ | セキュア開発、S-SDLC、脅威モデリング、コードレビュー | Des |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param( | |
| [Parameter(Mandatory=$true)] | |
| [string]$CveId | |
| ) | |
| $uri = "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=$CveId" | |
| try { | |
| $res = Invoke-RestMethod -Uri $uri -Method GET -UseBasicParsing -TimeoutSec 60 | |
| } catch { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| curl -s 'https://services.nvd.nist.gov/rest/json/cves/2.0?cveId='$CVEID \ | |
| | jq -r ' | |
| .vulnerabilities[].cve as $cve | |
| | ($cve.references[0].url // ("https://nvd.nist.gov/vuln/detail/" + $cve.id)) as $url | |
| | [ | |
| ( | |
| ($cve.metrics.cvssMetricV31 // []) | |
| | max_by(.cvssData.baseScore) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- encoding: UTF-8 -*- | |
| # | |
| # Description: CVEIDの情報をAPIから取得して加工するスクリプト。 | |
| # エラーチェックもろくにしていないガバガバスクリプト。 | |
| # ============================================= | |
| import argparse | |
| import sys | |
| import select |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| xorriso -as mkisofs \ | |
| -o proxmox-auto.iso \ | |
| -isohybrid-mbr iso/boot/isolinux/isohdpfx.bin \ | |
| -c isolinux/boot.cat \ | |
| -b isolinux/isolinux.bin \ | |
| -no-emul-boot -boot-load-size 4 -boot-info-table \ | |
| -eltorito-alt-boot \ | |
| -e boot/grub/efi.img \ | |
| -no-emul-boot \ | |
| -isohybrid-gpt-basdat \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -o errexit | |
| clear | |
| printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n" | |
| ### HOW TO USE | |
| ### Pre-req: | |
| ### - run on a Proxmox 6 server | |
| ### - a dhcp server should be active on vmbr1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Explanations: | |
| cache: If you include other words in the query, Google will highlight those words within | |
| the cached document. For instance, [cache:www.google.com web] will show the cached | |
| content with the word “web” highlighted. This functionality is also accessible by | |
| clicking on the “Cached” link on Google’s main results page. The query [cache:] will | |
| show the version of the web page that Google has in its cache. For instance, | |
| [cache:www.google.com] will show Google’s cache of the Google homepage. Note there | |
| can be no space between the “cache:” and the web page url. | |
| ------------------------------------------------------------------------------------------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| `ʕ•͡ᴥ•ʔ ʕ•͡ᴥ•ʔ ʕ•͡ᴥ•ʔ` | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import std/parseopt | |
| import hashes | |
| import sets | |
| import sequtils | |
| var p = initOptParser("-ab -c:123 -d xyz -e:5 --foo --bar=20 file.txt") | |
| var cmdline: OrderedSet[string] = initOrderedSet[string]() | |
| while true: | |
| p.next() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- encoding: UTF-8 -*- | |
| # Copyright(c) 2021 Blacknon. All rights reserved. | |
| # Use of this source code is governed by an MIT license | |
| # that can be found in the LICENSE file. | |
| # | |
| # User: | |
| # blacknon | |
| # Description: [hwatch](https://github.com/blacknon/hwatch)のlogをパースして出力するスクリプト | |
| # ============================================= |
NewerOlder