Text this: Judgment theorem of security boundary for distribution systems