The log posted here show no cause for the attack
No scans, nothing.
I don't think those events are in the journal.
I skimmed a few of mine and there is often nothing listed for reason for being attacked, even when I know exactly what my CMDR did to provoke the attack. Yesterday, I go caught stealing something, failing a mission, turning the settlement hostile, then fighting my way out of the base...and the only thing in the Journal at the relevant timestamps was:
{ "timestamp":"2021-12-19T16:05:02Z", "event":"Music", "MusicTrack":"OnFoot" }
{ "timestamp":"2021-12-19T16:19:35Z", "event":"UnderAttack", "Target":"You" }
The Journal says nothing about anything I did until I started getting shot, but I spent fifteen minutes scouting around, duplicating credentials, and trespassing before I was caught trying to reach the mission objective. The Journal recorded none of that.
The OP's case might not have been a bug, but we can't tell from the Journal file.