feat: add www.ipa.go.jp custom parser (#408)
parent
3ae8f3bde3
commit
216bfade00
@ -0,0 +1,264 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" value="text/html; charset=UTF-8">
|
||||
<title>ゴールデンウィークにおける情報セキュリティに関する注意喚起:IPA 独立行政法人 情報処理推進機構</title>
|
||||
<meta http-equiv="Content-Style-Type" value="text/css">
|
||||
<meta http-equiv="Content-Script-Type" value="text/javascript">
|
||||
<meta name="description" value="情報セキュリティ関連情報のユーザー、管理者、技術者に向けた発信、その前提となる情報収集、調査分析、研究開発、技術評価等の実施">
|
||||
<meta name="keywords" value="セキュリティセンター,セキュリティ,情報セキュリティ,ウイルス,ウイルス対策,不正アクセス,不正アクセス対策,届出,暗号技術,暗号技術評価,CRYPTREC,セキュリティ評価,認証,脆弱性,緊急対策情報,Common Criteria,コモンクライテリア,15408,SSE-CMM">
|
||||
<meta http-equiv="X-UA-Compatible" value="IE=EmulateIE8; IE=EmulateIE9">
|
||||
<link rel="shortcut icon" href="https://www.ipa.go.jp/files/000034570.ico">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="https://www.ipa.go.jp/files/default.css" media="all">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
<body class="g01">
|
||||
|
||||
<div id="ipar_header_area">
|
||||
<div id="ipar_header">
|
||||
<p id="ipar_logo"><a href="https://www.ipa.go.jp/index.html"><img src="https://www.ipa.go.jp/files/000000605.gif" alt="IPA 独立行政法人 情報処理推進機構" width="273" height="35"></a></p>
|
||||
<div id="ipar_head_right">
|
||||
<div id="ipar_upper">
|
||||
<div id="ipar_fontsize">
|
||||
<p><img src="https://www.ipa.go.jp/files/000000617.gif" width="52" height="22" alt="文字サイズ"></p>
|
||||
<ul id="fontChange">
|
||||
<li><a id="fontM" href="javascript:void(0);">標準</a></li>
|
||||
<li><a id="fontL" href="javascript:void(0);">拡大</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<ul id="ipar_headlink">
|
||||
<li><a href="https://www.ipa.go.jp/about/index.html"><img src="https://www.ipa.go.jp/files/000000559.gif" alt="IPAについて" width="104" height="28"></a></li>
|
||||
<li><a href="https://www.ipa.go.jp/about/news/index.html"><img src="https://www.ipa.go.jp/files/000000560.gif" alt="お知らせ一覧" width="116" height="28"></a></li>
|
||||
<li><a href="https://www.ipa.go.jp/about/sitemap/index.html"><img src="https://www.ipa.go.jp/files/000000561.gif" alt="サイトマップ" width="104" height="28"></a></li>
|
||||
<li><a href="https://www.ipa.go.jp/about/inquiry_index_0.html"><img src="https://www.ipa.go.jp/files/000000562.gif" alt="お問い合わせ" width="100" height="28"></a></li>
|
||||
<li><a href="https://www.ipa.go.jp/index-e.html"><img src="https://www.ipa.go.jp/files/000000563.gif" alt="ENGLISH" width="91" height="28"></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<ul id="ipar_gnavi">
|
||||
<li class="g00"><a href="https://www.ipa.go.jp/index.html">IPAホーム</a></li>
|
||||
<li class="g01"><a href="https://www.ipa.go.jp/security/index.html">情報セキュリティ</a></li>
|
||||
<li class="g09"><a href="https://www.ipa.go.jp/icscoe/index.html">産業サイバーセキュリティセンター</a></li>
|
||||
<li class="g02"><a href="https://www.ipa.go.jp/ikc/index.html">社会基盤センター</a></li>
|
||||
<li class="g03"><a href="https://www.ipa.go.jp/jinzai/mitou/index.html">未踏/セキュリティ・キャンプ</a></li>
|
||||
<li class="g04"><a href="https://www.ipa.go.jp/jinzai/index.html">IT人材育成</a></li>
|
||||
<li class="g05"><a href="https://www.ipa.go.jp/redirect_jitec.html">情報処理技術者試験・情報処理安全確保支援士</a></li>
|
||||
<li class="g06"><a href="https://www.ipa.go.jp/osc/index.html">データ利活用の推進</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="ipar_contents">
|
||||
<div id="ipar_bread">
|
||||
<p id="path"><a href="https://www.ipa.go.jp/index.html">HOME</a><a href="https://www.ipa.go.jp/security/index.html">情報セキュリティ</a>ゴールデンウィークにおける情報セキュリティに関する注意喚起</p>
|
||||
<p><a href="javascript:void(0);" target="_self" onclick="openWin()"><img src="https://www.ipa.go.jp/files/000000525.gif" alt="本文を印刷する" width="129" height="22"></a></p>
|
||||
</div>
|
||||
<div id="ipar_category"><img src="https://www.ipa.go.jp/files/000000535.jpg" alt="情報セキュリティ" width="958" height="76"></div>
|
||||
<div id="ipar_main">
|
||||
|
||||
<h1>ゴールデンウィークにおける情報セキュリティに関する注意喚起</h1>
|
||||
|
||||
<p class="ipar_text_right">
|
||||
最終更新日:2019年4月2日<br>
|
||||
独立行政法人情報処理推進機構<br>
|
||||
セキュリティセンター<br></p>
|
||||
|
||||
<div class="text"><p style="text-indent: 1em;">
|
||||
ゴールデンウィークまで1ヶ月を切りました。今年は5月1日に平成から令和に改元されることに伴い、10日間の超大型連休が控えています。その前後には、改元に便乗した新たな手口が発生することが懸念されます。そこで、例年より早く「ゴールデンウィークにおける情報セキュリティに関する注意喚起」を行います。</p>
|
||||
|
||||
<p style="text-indent: 1em;">
|
||||
長期休暇中は、「システム管理者が長期間不在になる」、「友人や家族と旅行に出かける」等、いつもと異なる状況になります。例えばウイルス感染や不正アクセス等の被害が発生した場合に対処が遅れてしまったり、SNSへの書き込みから思わぬ被害が発生したり、場合によっては関係者にも被害が及ぶ可能性があります。
|
||||
</p>
|
||||
<p style="text-indent: 1em;">
|
||||
そのほか、改元に便乗した新たな手口が発生する可能性もあります。メールやショートメッセージ(SMS)、SNSでの不審なファイルやURLには、より一層の注意が必要です。基本的な心得、対策を(1)組織のシステム管理者、(2)組織の利用者、(3)家庭の利用者、それぞれの対象者別にまとめています。今年は10日間の超大型連休となるため、早めの準備をお勧めします。
|
||||
</p>
|
||||
|
||||
<p><strong>■<a href="https://www.ipa.go.jp/security/measures/vacation.html">長期休暇における情報セキュリティ対策</a></strong></p>
|
||||
|
||||
<p style="text-indent: 1em;">
|
||||
また、長期休暇に限らず、日常的に行うべき情報セキュリティ対策も公開しています。
|
||||
</p>
|
||||
|
||||
<p><strong>■<a href="https://www.ipa.go.jp/security/measures/everyday.html">日常的に実施すべき情報セキュリティ対策</a></strong></p>
|
||||
|
||||
<p style="text-indent: 1em;">
|
||||
被害に遭わないためにもこれらの対策の実施をお願いします。
|
||||
</p><br>
|
||||
|
||||
<p style="text-indent: 1em;">
|
||||
なお、独立行政法人国民生活センターでは実際にあった消費者トラブルについて注意喚起を行っています。
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li>2019年3月15日公表<br>
|
||||
「新元号への改元に便乗した消費者トラブルにご注意ください!」
|
||||
<a href="http://www.kokusen.go.jp/soudan_now/data/kaigen.html" target="_blank">http://www.kokusen.go.jp/soudan_now/data/kaigen.html<img alt="別ウィンドウで開く" src="https://www.ipa.go.jp/files/000000601.gif">
|
||||
</a>
|
||||
|
||||
<ul></ul></li></ul></div>
|
||||
|
||||
|
||||
<h3 id="section1">ご参考:最近多く寄せられる相談事例</h3>
|
||||
|
||||
<div class="text"><div style="margin-left: 1em;">
|
||||
<h4>相談事例 <font color="#000000">宅配便業者をかたる偽SMS</font></h4>
|
||||
</div>
|
||||
|
||||
<table border="1">
|
||||
<tr>
|
||||
<th width="12%" scope="row">相談内容</th>
|
||||
<td width="82%">
|
||||
<p>
|
||||
<b>佐川急便から不在通知のショートメッセージ(SMS)を受け取った。</b> <br>
|
||||
<br>
|
||||
[iPhoneやiPad等のiOS端末の場合]
|
||||
<ul>
|
||||
<li>SMS内のURLからアクセスし、アップデートを適用するよう促すメッセージに誘導されて、「プロファイル」をインストールしてしまった。
|
||||
</li><li>その後に表示されたサイトで「Apple IDとパスワード」を入力してしまった。
|
||||
</li></ul>
|
||||
|
||||
</p>
|
||||
|
||||
<div style="text-align: center"><a height="100%" href="https://www.ipa.go.jp/files/000072496.png" target="_blank" width="100%"><img alt="(クリックして拡大)" src="https://www.ipa.go.jp/files/000072496.png" style="height: 100%; width: 100%"> </a><br>
|
||||
(クリックして拡大)</div>
|
||||
<br>
|
||||
[Android端末の場合]
|
||||
<ul>
|
||||
<li>SMS内のURLからアクセスし、表示されたサイトからアプリをインストールしてしまった。その後、そのアプリが勝手にSMS
|
||||
|
||||
を送信し、それを受け取った人から自分宛てに電話がかかってくる。
|
||||
</li><li>身に覚えのないキャリア決済サービスの請求が発生した。
|
||||
</li></ul>
|
||||
|
||||
<p></p>
|
||||
|
||||
<div style="text-align: center"><a height="100%" href="https://www.ipa.go.jp/files/000072497.png" target="_blank" width="100%"><img alt="(クリックして拡大)" src="https://www.ipa.go.jp/files/000072497.png" style="height: 100%; width: 100%"> </a><br>
|
||||
(クリックして拡大)</div>
|
||||
<br>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">回答</th>
|
||||
<td>
|
||||
<p>
|
||||
<b>宅配便業者をかたる、偽のSMSです。</b> <br>
|
||||
現在、佐川急便では、<u>SMSによる不在通知の案内は行っていません。</u> <br>
|
||||
|
||||
</p><p style="text-indent: 2em;">
|
||||
佐川急便株式会社「佐川急便を装った迷惑メールにご注意ください」 </p>
|
||||
<p style="text-indent: 3em;">
|
||||
<a href="http://www2.sagawa-exp.co.jp/whatsnew/detail/721" target="_blank">http://www2.sagawa-
|
||||
exp.co.jp/whatsnew/detail/721<img alt="別ウィンドウで開く" src="https://www.ipa.go.jp/files/000000601.gif">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li><b>佐川急便の不在通知をかたるSMSのURLをタップしない</b>でください。
|
||||
</li></ul>
|
||||
[iPhoneやiPad等のiOS端末の場合]
|
||||
<ul>
|
||||
<li>構成プロファイルのインストール画面が表示された場合は、「無視」または「キャンセル」をタップして画面を閉じてください。構成プロファイルをインストールしていなければ、被害にはつながりません。</li><li>構成プロファイルをインストールしてしまった場合は、外部への情報送信の可能性を考慮し安全を期するため、すぐにスマートフォンを機内モード(Wi-FiもOFF)にした後、端末を初期化することを推奨します。</li><li>フィッシングサイトにApple IDとパスワードを入力してしまった場合は、速やかにパスワードを変更してください。</li></ul>
|
||||
詳細は、下記を参照してください。 <br>
|
||||
<br>
|
||||
◆安心相談窓口だより<br>
|
||||
<a href="https://www.ipa.go.jp/security/anshin/mgdayori20190320.html" target="_blank">宅配便業者をかたる偽ショートメッセージで、また新たな手口が出現(2019/3/20)</a><br>
|
||||
<br>
|
||||
|
||||
[Android端末の場合]
|
||||
<ul>
|
||||
<li>不審なアプリをインストールしてしまった場合は、すぐにスマートフォンを機内モードにした後、端末やアカウントへの対応などを行ってください。 </li><li>Apple IDとパスワードを入力してしまった場合は、速やかにパスワードを変更してください。
|
||||
</li></ul>
|
||||
詳細は、下記を参照してください。 <br>
|
||||
<br>
|
||||
◆安心相談窓口だより<br>
|
||||
<a href="https://www.ipa.go.jp/security/anshin/mgdayori20180808.html" target="_blank">宅配便業者をかたる偽ショートメッセージに関する相談が急増中(2018/8/8)</a><br>
|
||||
<a href="https://www.ipa.go.jp/security/anshin/mgdayori20181129.html" target="_blank">宅配便業者をかたる偽ショートメッセージに関する新たな手口が出現し、iPhoneも標的に(2018/11/29)</a>
|
||||
|
||||
<p></p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table></div>
|
||||
|
||||
|
||||
|
||||
<h2 id="section8">本件に関するお問い合わせ先</h2>
|
||||
|
||||
<div class="text"><div style="margin-left: 2em;">
|
||||
Tel: 03-5978-7591 Fax: 03-5978-7518<br>
|
||||
セキュリティセンター 中島/加賀谷<br>
|
||||
</div></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div id="ipar_side">
|
||||
<div class="ipar_subnavi">
|
||||
<p>情報セキュリティ</p>
|
||||
<ul>
|
||||
<li><a href="https://www.ipa.go.jp/security/vuln/index.html">脆弱性対策情報</a></li>
|
||||
<li><a href="https://www.ipa.go.jp/security/outline/todoke-top-j.html">届出・相談・情報提供</a></li>
|
||||
<li><a href="https://www.ipa.go.jp/security/announce/features.html">特集コンテンツ</a></li>
|
||||
<li><a href="https://www.ipa.go.jp/security/keihatsu/features.html">情報セキュリティ啓発</a></li>
|
||||
<li><a href="https://www.ipa.go.jp/security/measures/index.html">情報セキュリティ対策</a></li>
|
||||
<li><a href="https://www.ipa.go.jp/security/ipg/crypt.html">暗号技術</a></li>
|
||||
<li><a href="https://www.ipa.go.jp/security/economics/index.html">セキュリティエコノミクス</a></li>
|
||||
<li><a href="https://www.ipa.go.jp/security/certification/index.html">情報セキュリティ認証関連</a></li>
|
||||
<li><a href="https://www.ipa.go.jp/security/seminar/seminar.html">セミナー・イベント</a></li>
|
||||
<li><a href="https://www.ipa.go.jp/security/report/index.html">資料・報告書・出版物</a></li>
|
||||
<li><a href="https://www.ipa.go.jp/security/tools/index.html">ツール</a></li>
|
||||
<li><a href="https://www.ipa.go.jp/security/support/index.html">サポート情報</a></li>
|
||||
<li><a href="https://www.ipa.go.jp/security/outline/isecabst.html">セキュリティセンターについて</a></li>
|
||||
<li><a href="https://www.ipa.go.jp/security/announce/others.html">その他</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="ipar_footer_area">
|
||||
<div id="ipar_gotop"><a href="https://www.ipa.go.jp/security/topics/alert20190402.html#ipar_header"><img src="https://www.ipa.go.jp/files/000000616.gif" alt="ページトップへ" width="136" height="27"></a></div>
|
||||
<div id="ipar_footer">
|
||||
<ul id="ipar_footlink">
|
||||
<li><a href="https://www.ipa.go.jp/about/riyojoken/index.html">ご利用について</a></li>
|
||||
<li><a href="https://www.ipa.go.jp/about/personal/index.html">個人情報保護</a></li>
|
||||
<li><a href="https://www.ipa.go.jp/about/johokokai/index.html">情報公開</a></li>
|
||||
<li><a href="https://www.ipa.go.jp/about/links/index.html">リンク</a></li>
|
||||
</ul>
|
||||
<div id="ipar_copyright">Copyright ©
|
||||
Information-technology Promotion Agency, Japan(IPA)
|
||||
<br>(法人番号 5010005007126)</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,29 @@
|
||||
export const WwwIpaGoJpExtractor = {
|
||||
domain: 'www.ipa.go.jp',
|
||||
|
||||
title: {
|
||||
selectors: ['h1'],
|
||||
},
|
||||
|
||||
author: null,
|
||||
|
||||
date_published: {
|
||||
selectors: ['p.ipar_text_right'],
|
||||
format: 'YYYY年M月D日',
|
||||
timezone: 'Asia/Tokyo',
|
||||
},
|
||||
|
||||
dek: null,
|
||||
|
||||
lead_image_url: null,
|
||||
|
||||
content: {
|
||||
selectors: ['#ipar_main'],
|
||||
|
||||
defaultCleaner: false,
|
||||
|
||||
transforms: {},
|
||||
|
||||
clean: ['p.ipar_text_right'],
|
||||
},
|
||||
};
|
@ -0,0 +1,111 @@
|
||||
import assert from 'assert';
|
||||
import URL from 'url';
|
||||
import cheerio from 'cheerio';
|
||||
|
||||
import Mercury from 'mercury';
|
||||
import getExtractor from 'extractors/get-extractor';
|
||||
import { excerptContent } from 'utils/text';
|
||||
|
||||
const fs = require('fs');
|
||||
|
||||
describe('WwwIpaGoJpExtractor', () => {
|
||||
describe('initial test case', () => {
|
||||
let result;
|
||||
let url;
|
||||
beforeAll(() => {
|
||||
url = 'https://www.ipa.go.jp/security/topics/alert20190402.html';
|
||||
const html = fs.readFileSync(
|
||||
'./fixtures/www.ipa.go.jp/1554465542351.html'
|
||||
);
|
||||
result = Mercury.parse(url, {
|
||||
html,
|
||||
fallback: false,
|
||||
});
|
||||
});
|
||||
|
||||
it('is selected properly', () => {
|
||||
// This test should be passing by default.
|
||||
// It sanity checks that the correct parser
|
||||
// is being selected for URLs from this domain
|
||||
const extractor = getExtractor(url);
|
||||
assert.equal(extractor.domain, URL.parse(url).hostname);
|
||||
});
|
||||
|
||||
it('returns the title', async () => {
|
||||
// To pass this test, fill out the title selector
|
||||
// in ./src/extractors/custom/www.ipa.go.jp/index.js.
|
||||
const { title } = await result;
|
||||
|
||||
// Update these values with the expected values from
|
||||
// the article.
|
||||
assert.equal(
|
||||
title,
|
||||
`ゴールデンウィークにおける情報セキュリティに関する注意喚起`
|
||||
);
|
||||
});
|
||||
|
||||
it('returns the author', async () => {
|
||||
// To pass this test, fill out the author selector
|
||||
// in ./src/extractors/custom/www.ipa.go.jp/index.js.
|
||||
const { author } = await result;
|
||||
|
||||
// Update these values with the expected values from
|
||||
// the article.
|
||||
assert.equal(author, null);
|
||||
});
|
||||
|
||||
it('returns the date_published', async () => {
|
||||
// To pass this test, fill out the date_published selector
|
||||
// in ./src/extractors/custom/www.ipa.go.jp/index.js.
|
||||
const { date_published } = await result;
|
||||
|
||||
// Update these values with the expected values from
|
||||
// the article.
|
||||
assert.equal(date_published, '2019-04-01T15:00:00.000Z');
|
||||
});
|
||||
|
||||
it('returns the dek', async () => {
|
||||
// To pass this test, fill out the dek selector
|
||||
// in ./src/extractors/custom/www.ipa.go.jp/index.js.
|
||||
const { dek } = await result;
|
||||
|
||||
// Update these values with the expected values from
|
||||
// the article.
|
||||
assert.equal(dek, null);
|
||||
});
|
||||
|
||||
it('returns the lead_image_url', async () => {
|
||||
// To pass this test, fill out the lead_image_url selector
|
||||
// in ./src/extractors/custom/www.ipa.go.jp/index.js.
|
||||
const { lead_image_url } = await result;
|
||||
|
||||
// Update these values with the expected values from
|
||||
// the article.
|
||||
assert.equal(lead_image_url, null);
|
||||
});
|
||||
|
||||
it('returns the content', async () => {
|
||||
// To pass this test, fill out the content selector
|
||||
// in ./src/extractors/custom/www.ipa.go.jp/index.js.
|
||||
// You may also want to make use of the clean and transform
|
||||
// options.
|
||||
const { content } = await result;
|
||||
|
||||
const $ = cheerio.load(content || '');
|
||||
|
||||
const first13 = excerptContent(
|
||||
$('*')
|
||||
.first()
|
||||
.text(),
|
||||
1
|
||||
);
|
||||
|
||||
// Update these values with the expected values from
|
||||
// the article.
|
||||
assert.equal(
|
||||
first13,
|
||||
'ゴールデンウィークまで1ヶ月を切りました。今年は5月1日に平成から令和に改元されることに伴い、10日間の超大型連休が控えています。その前後には、改元に便乗した新たな手口が発生することが懸念されます。そこで、例年より早く「ゴールデンウィークにおける情報セキュリティに関する注意喚起」を行います。'
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue