•Silk fibroin matrix was able to maintain the activity of AMPs over 21 d and endow with the infection-trigger release. The gene discussed is ADSL; the disease is infection.