[tw] [tx] add security check