Having surgery can increase the risk. Another risk factor is an unusual skin reaction to injury called pathergy.