there is a train connecting 2E K with 2E M, however I'm not sure if this requires another security check.
Yes it does, Security for K is separate from security for L with no security-free connection between the two airside. They might as well be two completely different terminals.