Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

約1分毎に1パケットしかない状態でZeekがログを出さない問題 #178

Open
takuma0121 opened this issue Feb 29, 2024 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@takuma0121
Copy link
Contributor

まずは原因分析から

@takuma0121 takuma0121 added the bug Something isn't working label Feb 29, 2024
@takuma0121 takuma0121 added this to the STEP3.0リリース milestone Feb 29, 2024
@takuma0121 takuma0121 self-assigned this Feb 29, 2024
@takuma0121
Copy link
Contributor Author

以下、関係している可能性あり

CaptureLoss::Too_Little_Traffic Only observed 0 TCP ACKs and was expecting at least 1.

@iwswhrk
Copy link

iwswhrk commented Jul 22, 2024

Captureloss.logはTCPのシーケンス番号をみてTCPのロス率を出しているので上記のログはconn.logに載らない問題とはおそらく関係ない。

zeekがログを出さない問題再現検証

  • 環境
    • core/sensor: release-v3.0.1オンプレ版
    • zeek v5.0.0
    1. 単発でTCP SYN 1パケットだけ投げる
    • pcapファイル
      1   0.000000 192.168.111.1 → 192.168.111.2 TCP 74 60828 → 5001 [SYN] Seq=0 Win=62720 Len=0 MSS=8960 SACK_PERM=1 TSval=3827391561 TSecr=0 WS=128
      
    • conn.logに出力されることを確認
      1721617865.261335	Cyoge01uvxLza3Y2P4	192.168.111.1	60828	192.168.111.2	5001	tcp	-	-	-	-	S0	T	T	0	S	1	60	0	0	-	22:cb:92:eb:44:67	82:8e:58:8d:c6:ee
      
    1. TCP SYNパケットを1分おきに投げる
    • 毎分のconn.logに出力されることを確認
      1721641502.741364	CH5cSh4OPtaZa6pRsl	192.168.111.1	60828	192.168.111.2	5001	tcp	-	-	-	-	S0	T	T	0	S	1	60	0	0	-	22:cb:92:eb:44:67	82:8e:58:8d:c6:ee
      ---
      1721641561.991097	Cp0YGT30i5oY9TKa58	192.168.111.1	60828	192.168.111.2	5001	tcp	-	-	-	-	S0	T	T	0	S	1	60	0	0	-	22:cb:92:eb:44:67	82:8e:58:8d:c6:ee
      ---
      1721641621.351101	Ch1iA62XHlCYrZMPtd	192.168.111.1	60828	192.168.111.2	5001	tcp	-	-	-	-	S0	T	T	0	S	1	60	0	0	-	22:cb:92:eb:44:67	82:8e:58:8d:c6:ee
      
    1. icmp 1パケット送信
    • 1~2分遅れるがconn.logに出力あり。icmpなのにポート番号ついてる?
      1721643934.388007	CqpXXF3RAJMdxmcG01	192.168.111.1	8	192.168.111.2	0	icmp	-	0.000057	56	56	OTH	T	T	0	-	1	84	1	84	-	22:cb:92:eb:44:67	82:8e:58:8d:c6:ee
      
  • SYNパケット, icmpではzeekがログを出さない事象再現できず
  • ACKが返っていないのは関係なさそう

@iwswhrk iwswhrk assigned iwswhrk and nbhgytzheng and unassigned takuma0121 Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants