0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[forensics] CSIRT_asks_you_01 (setodaNote CTF Exhibition) writeup

0
Last updated at Posted at 2025-12-05

  • Source: setodaNote CTF Exhibition
  • Author: (不明)

Windowsのevtxファイルが配布される。不正な方法によってネットワーク経由のログインが成功したことを示している最初の記録の日時とEventIDを特定すれば良く、flagはflag{yyyy/mm/dd_hh:mm:ss_eventID}という形式で提出する。

ログオンを表すEventIDは4624なのでそれでフィルタをかけるが、あまりにも数が多い。ネットわーっく経由ではないログインも含まれているようだ。

ネットワーク経由のログインのみを抽出するにはLogonType=3でフィルタをかければ良いので、以下のようなXMLクエリで検索する。

<QueryList>
  <Query Id="0" Path="file://C:\path\to\Security.evtx">
    <Select Path="file://C:\path\to\Security.evtx">
      *[System[(EventID=4624)]]
      and
      *[EventData[Data[@Name='LogonType']='3']]
</Select>
  </Query>
</QueryList>

すると、3つのイベントが見つかった。
{215BB77E-F088-49D2-BD78-C5A1253F45B4}.png

時刻をUTC+0で提出する必要があると問題文にあるのでflag{2021/07/17_21:50:40_4624}を提出するが、不正解になってしまった。

これら3つのイベントログ付近に発生しているイベントを見ると、3つ目のイベント直前にログイン失敗(4625)のイベントがたくさんある。ということで、3つ目のイベントの時間でflagを提出すると正解となった。不正な方法によってというのはこういう意味なのか……ちょっともやもやが残る。

flag{2021/07/18_20:09:21_4624}

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?