Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
= Ruby �� Text::Hatena
== ����
Text::Hatena �Ȥϡ���ƣ���餵��ˤ�ä� Perl �ǽ줿�饤�֥��ǡ��� �Ƥʵ�ˡ�ǽ줿�ƥ����Ȥ��ᤷ��HTML �������Ѵ����ޤ����ϤƤʵ�ˡ�� �ϡ��ϤƤʥ�������ǻȤ��Ƥ���Ǥ���
���� Text::Hatena �� Ruby �ؤ��Τޤްܿ�������Τ����� Ruby �� Text::Hatena �Ǥ���Perl �ǽ줿�����ɤΥ����å��ʤɤ��ǽ�ʸ¤��ѹ� ���ʤ��褦�˰ܿ������Ĥ��Ǥ��Τǡ�Perl �� Text::Hatena ��Ʊ�ͤˤ��Ȥ� ����������Ϥ��Ǥ���
== ������ˡ
�ʲ��Υ����֥ڡ����ˤƥ��������֥ե������������Ƥ��ޤ���
�ޤ���Subversion�Υ�ݥ��ȥ�⤴���Ѥ��������ޤ���
== ���ȡ���
setup.rb ��Ȥ��ޤ���
% ruby setup.rb
���Ȥ��� OS �ˤ�äƤ� sudo ���ޥ�ɤ�Ȥ�ɬ�פ����뤫�⤷��ޤ���
% sudo ruby setup.rb
== �Ȥ���
(1) text/hatena �� require ���ޤ���
require "text/hatena"
(2) Text::Hatena ���֥������Ȥ���ޤ���
parser = Text::Hatena.new
(3) Text::Hatena#parse ��åɤ�Ȥä��Ѵ����ޤ���
parser.parse(text)
(4) Text::Hatena#html ��åɤ����Ѵ���̤���Ф��ޤ���
html = parser.html
== Text::Hatena ���饹
: Text::Hatena.new(args = {})
Text::Hatena ���饹�Υ��֥������Ȥ������ޤ���Text::Hatena �� �֥������Ȥ��֤��ޤ���
�����ͤ˻Ȥ��ޤ�:
parser = Text::Hatena.new
��ά��ǽ�ʰ���(args)�Ȥ��� Hash ���֥������Ȥ�Ϳ���뤳�Ȥ�����ޤ��� �����ˤϰʲ��Υ���ܥ��Ȥ��ޤ���
�����ͤ˻��ꤷ�ޤ�:
parser = Text::Hatena.new({
:parmalink => 'http://www.example.com/entry/123',
:sectionanchor => '_'
})
: Text::Hatena#parse(string)
ʸ����(string)���ᤷ�ơ�HTML �������Ѵ����ޤ���
���Τ褦�˻Ȥ��ޤ�:
parser.parse("")
: Text::Hatena#html
HTML �������Ѵ����줿��̤�ʸ����Ȥ����֤��ޤ���
���Τ褦�˻Ȥ��ޤ���:
parser = Text::Hatena.new
parser.parse("*title")
puts parser.html
ɸ����Ϥˤϰʲ��Τ褦�˽��Ϥ���ޤ�:
<div class="section">
<h3><a name="p1" href="#p1"><span class="sanchor">o-</span></a> title</h3>
</div>
== �饤����
Ruby��Ʊ���饤���Ȥ��ޤ����ܤ����� ((URL:http://www.ruby-lang.org/ja/LICENSE.txt)) ��������������
== ����
�����Ƿ ((URL:mailto:don@na.rim.or.jp)) �� Perl �� Text::Hatena 0.01 ��ܿ����ޤ�����
Perl �� Text::Hatena 0.06 �ؤ��б��� drawnboy ����ˤ���ΤǤ���
== �ռ�
drawnboy ���� Perl �� Text::Hatena 0.06 �ؤ��б���ʬ��ĺ���ޤ����� ���꤬�Ȥ��������ޤ�����
���Υ饤�֥��˴ޤޤ�� lib/text/hatena/utils/htmlsplit.rb �ϡ� MoonWolf ��������� htmlsplit.rb ������פ�������Υѥå���Ŭ�Ѥ������ �Ǥ���ͭ�Ѥʥ饤�֥��θ����˴��դ������ޤ���
�쳤ͼ��������Զ�������ƥ��ȥ����ɤ�ĺ���ޤ��������꤬�Ȥ��� �����ޤ�����
��������Զ������佤���Ƥ�ĺ���ޤ��������꤬�Ȥ��������ޤ�����
FAQs
Unknown package
We found that iwadon-text-hatena demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.